Update tf_gamemovement.cpp

This commit is contained in:
FlaminSarge 2025-02-25 21:26:08 -07:00 committed by FlaminSarge
parent 392da90c5e
commit 2fd04ffce6

View file

@ -1142,7 +1142,7 @@ void CTFGameMovement::ToggleParachute()
}
else
{
bool bOnGround = ( player->GetGroundEntity() != NULL );
bool bOnGround = ( m_pTFPlayer->GetFlags() & FL_ONGROUND );
int iParachuteDisabled = 0;
CALL_ATTRIB_HOOK_INT_ON_OTHER( m_pTFPlayer, iParachuteDisabled, parachute_disabled );
if ( !bOnGround && !iParachuteDisabled && ( tf_parachute_deploy_toggle_allowed.GetBool() || !m_pTFPlayer->m_Shared.InCond( TF_COND_PARACHUTE_DEPLOYED ) ) )