fixed lerk glide stuck on ramps

This commit is contained in:
pierow 2021-02-08 05:46:27 -05:00
parent 7f44ef2c8b
commit b2d10207c1

View file

@ -6782,7 +6782,7 @@ void PM_PlayerMove ( qboolean server )
}
// If we are on ground, no downward velocity.
if((pmove->onground != -1 && gIsJetpacking[pmove->player_index] == 0) && !GetHasUpgrade(pmove->iuser4, MASK_WALLSTICKING))
if ((pmove->onground != -1 && gIsJetpacking[pmove->player_index] == 0 && (!isglidinglerk || !newlerk)) && !GetHasUpgrade(pmove->iuser4, MASK_WALLSTICKING))
{
pmove->velocity[2] = 0;
}