mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-20 19:02:37 +00:00
Fix pressing drift button not allowing turning in mid-air
This commit is contained in:
parent
1431b5cb5d
commit
d6fef7ff29
1 changed files with 1 additions and 1 deletions
|
@ -1744,7 +1744,7 @@ INT16 K_GetKartTurnValue(player_t *player, INT16 turnvalue)
|
|||
fixed_t p_maxspeed = FixedMul(K_GetKartSpeed(player, false), 3*FRACUNIT);
|
||||
fixed_t adjustangle = FixedDiv((p_maxspeed>>16) - (player->speed>>16), (p_maxspeed>>16) + player->kartweight);
|
||||
|
||||
if (player->kartstuff[k_drift] != 0)
|
||||
if (player->kartstuff[k_drift] != 0 && P_IsObjectOnGround(player->mo))
|
||||
{
|
||||
// If we're drifting we have a completely different turning value
|
||||
if (player->kartstuff[k_driftend] == 0)
|
||||
|
|
Loading…
Reference in a new issue