Fix driftsound going off in the air

This commit is contained in:
NepDisk 2025-07-18 16:37:55 -04:00
parent 9aa61253ff
commit d68214a470

View file

@ -2195,7 +2195,7 @@ void P_MovePlayer(player_t *player)
else if (!S_SoundPlaying(player->mo, sfx_drift) && onground && player->drift != 0)
S_StartSound(player->mo, sfx_drift);
// Ok, we'll stop now.
else if (player->drift == 0)
else if (player->drift == 0 || !onground)
S_StopSoundByID(player->mo, sfx_drift);
K_MoveKartPlayer(player, onground);