mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
Fix oil drums blowing up after yoyoing them
This commit is contained in:
parent
a62efecf62
commit
692232d169
1 changed files with 6 additions and 0 deletions
|
@ -2742,6 +2742,12 @@ void CPhysicsProp::OnPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGunPickup_t r
|
|||
}
|
||||
}
|
||||
|
||||
if ( pPhysicsObject && ( pPhysicsObject->GetGameFlags() & FVPHYSICS_WAS_THROWN ) )
|
||||
{
|
||||
PhysClearGameFlags( pPhysicsObject, FVPHYSICS_WAS_THROWN );
|
||||
}
|
||||
m_bFirstCollisionAfterLaunch = false;
|
||||
|
||||
m_OnPhysGunPickup.FireOutput( pPhysGunUser, this );
|
||||
|
||||
if( reason == PICKED_UP_BY_CANNON )
|
||||
|
|
Loading…
Reference in a new issue