mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
Merge 6aa7ec9df1
into 65aa7c910e
This commit is contained in:
commit
74c6ce71b0
1 changed files with 9 additions and 6 deletions
|
@ -6089,13 +6089,16 @@ void CBasePlayer::ImpulseCommands( )
|
|||
|
||||
pWeapon = GetActiveWeapon();
|
||||
|
||||
if( pWeapon->IsEffectActive( EF_NODRAW ) )
|
||||
if ( pWeapon )
|
||||
{
|
||||
pWeapon->Deploy();
|
||||
}
|
||||
else
|
||||
{
|
||||
pWeapon->Holster();
|
||||
if ( pWeapon->IsEffectActive( EF_NODRAW ) )
|
||||
{
|
||||
pWeapon->Deploy();
|
||||
}
|
||||
else
|
||||
{
|
||||
pWeapon->Holster();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue