Merge pull request #237 from AgentAgrimar/master

Assign Held Physcannon Entity to Pass into Commander Goal Trace
This commit is contained in:
Blixibon
2023-10-24 22:59:39 -05:00
committed by GitHub

View File

@@ -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