Remove drift when hitting 0 speed

Prevents silliness like this: https://cdn.discordapp.com/attachments/275750804227489794/688515983471804455/kart0027.gif
This commit is contained in:
Sally Cochenour 2020-03-14 18:38:01 -04:00
parent 219d4aebf2
commit ed9919d47c

View file

@ -5854,7 +5854,7 @@ static void K_KartDrift(player_t *player, boolean onground)
player->kartstuff[k_driftend] = 0;
}
if (player->kartstuff[k_spinouttimer] > 0)
if (player->kartstuff[k_spinouttimer] > 0 || player->speed == 0)
{
// Stop drifting
player->kartstuff[k_drift] = player->kartstuff[k_driftcharge] = 0;