mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-05-17 17:18:01 +03:00
Fix player not being able to deploy parachute after landing and becoming airborne without jump button
This commit is contained in:
parent
43d8767c30
commit
a32d24df73
@ -1116,12 +1116,6 @@ void CTFGameMovement::PreventBunnyJumping()
|
||||
//-----------------------------------------------------------------------------
|
||||
void CTFGameMovement::ToggleParachute()
|
||||
{
|
||||
if ( ( m_pTFPlayer->GetFlags() & FL_ONGROUND ) )
|
||||
{
|
||||
m_pTFPlayer->m_Shared.RemoveCond( TF_COND_PARACHUTE_DEPLOYED );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( mv->m_nOldButtons & IN_JUMP )
|
||||
return;
|
||||
|
||||
|
@ -3106,6 +3106,10 @@ void CTFPlayerShared::ConditionThink( void )
|
||||
{
|
||||
RemoveCond( TF_COND_PARACHUTE_ACTIVE );
|
||||
}
|
||||
if ( InCond( TF_COND_PARACHUTE_DEPLOYED ) )
|
||||
{
|
||||
RemoveCond( TF_COND_PARACHUTE_DEPLOYED );
|
||||
}
|
||||
|
||||
if ( InCond( TF_COND_ROCKETPACK ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user