File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1164,12 +1164,6 @@ void CTFGameMovement::PreventBunnyJumping()
11641164// -----------------------------------------------------------------------------
11651165void CTFGameMovement::ToggleParachute ()
11661166{
1167- if ( ( m_pTFPlayer->GetFlags () & FL_ONGROUND ) )
1168- {
1169- m_pTFPlayer->m_Shared .RemoveCond ( TF_COND_PARACHUTE_DEPLOYED );
1170- return ;
1171- }
1172-
11731167 if ( mv->m_nOldButtons & IN_JUMP )
11741168 return ;
11751169
Original file line number Diff line number Diff line change @@ -3095,9 +3095,16 @@ void CTFPlayerShared::ConditionThink( void )
30953095
30963096 VehicleThink ();
30973097
3098- if ( m_pOuter->GetFlags () & FL_ONGROUND && InCond ( TF_COND_PARACHUTE_ACTIVE ) )
3098+ if ( m_pOuter->GetFlags () & FL_ONGROUND )
30993099 {
3100- RemoveCond ( TF_COND_PARACHUTE_ACTIVE );
3100+ if ( InCond ( TF_COND_PARACHUTE_ACTIVE ) )
3101+ {
3102+ RemoveCond ( TF_COND_PARACHUTE_ACTIVE );
3103+ }
3104+ if ( InCond ( TF_COND_PARACHUTE_DEPLOYED ) )
3105+ {
3106+ RemoveCond ( TF_COND_PARACHUTE_DEPLOYED );
3107+ }
31013108 }
31023109
31033110 // See if we should be pulsing our radius heal
You can’t perform that action at this time.
0 commit comments