Make doubly sure not to keepsliptide with no sliptide

This commit is contained in:
AJ Martinez 2023-04-08 05:31:30 -07:00
parent d39af93f14
commit ddbeb98677

View file

@ -9317,7 +9317,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|| (!player->aizdriftstrat)
|| (player->steering > 0) != (player->aizdriftstrat > 0))
{
if (!player->drift && player->steering && player->aizdriftstrat // If we were sliptiding last tic,
if (!player->drift && player->steering && player->aizdriftstrat && player->sliptideZip // If we were sliptiding last tic,
&& (player->steering > 0) == (player->aizdriftstrat > 0) // we're steering in the right direction,
&& player->speed >= K_GetKartSpeed(player, false, true)) // and we're above the threshold to spawn dust...
{