mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-16 00:38:50 +03:00
Properly assign held physcannon entity to pass into commander goal trace
This commit is contained in:
parent
af6f9fe518
commit
1876d1abf4
@ -1814,7 +1814,7 @@ bool CHL2_Player::CommanderFindGoal( commandgoal_t *pGoal )
|
||||
// Get either our +USE entity or the gravity gun entity
|
||||
CBaseEntity *pHeldEntity = GetPlayerHeldEntity(this);
|
||||
if ( !pHeldEntity )
|
||||
PhysCannonGetHeldEntity( GetActiveWeapon() );
|
||||
pHeldEntity = PhysCannonGetHeldEntity( GetActiveWeapon() );
|
||||
|
||||
CTraceFilterSkipTwoEntities filter( this, pHeldEntity, COLLISION_GROUP_INTERACTIVE_DEBRIS );
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user