Stop sliptides midair

This commit is contained in:
AJ Martinez 2023-11-16 00:35:24 -07:00
parent 9ed05b5c21
commit fc821b7e8f

View file

@ -9279,6 +9279,7 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
{
updaterespawn = true;
player->pflags &= ~PF_UPDATEMYRESPAWN;
CONS_Printf("%d: Forced waypoint update\n", leveltime);
}
// Respawn point should only be updated when we're going to a nextwaypoint
@ -10145,6 +10146,13 @@ static void K_KartDrift(player_t *player, boolean onground)
}
}
if (player->airtime > 2) // Arbitrary number. Small discontinuities due to Super Jank shouldn't thrash your handling properties.
{
player->aizdriftstrat = 0;
keepsliptide = false;
}
if ((player->aizdriftstrat && !player->drift)
|| (keepsliptide))
{