mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Merge 59f00ceadb
into ceb6d4d783
This commit is contained in:
commit
834dd024de
1 changed files with 8 additions and 1 deletions
|
@ -792,6 +792,13 @@ void CPlayerPickupController::Use( CBaseEntity *pActivator, CBaseEntity *pCaller
|
|||
|
||||
//Adrian: Oops, our object became motion disabled, let go!
|
||||
IPhysicsObject *pPhys = pAttached->VPhysicsGetObject();
|
||||
|
||||
if ( !pPhys )
|
||||
{
|
||||
Shutdown();
|
||||
return;
|
||||
}
|
||||
|
||||
if ( pPhys && pPhys->IsMoveable() == false )
|
||||
{
|
||||
Shutdown();
|
||||
|
@ -808,7 +815,7 @@ void CPlayerPickupController::Use( CBaseEntity *pActivator, CBaseEntity *pCaller
|
|||
}
|
||||
#endif
|
||||
// +ATTACK will throw phys objects
|
||||
if ( m_pPlayer->m_nButtons & IN_ATTACK )
|
||||
if ( pPhys && m_pPlayer->m_nButtons & IN_ATTACK )
|
||||
{
|
||||
Shutdown( true );
|
||||
Vector vecLaunch;
|
||||
|
|
Loading…
Reference in a new issue