Update positiondelay during hitlag

This commit is contained in:
AJ Martinez 2023-02-13 16:01:19 -07:00
parent 0d8ada50bf
commit 9c3bcd44c7

View file

@ -7152,6 +7152,9 @@ void K_KartPlayerHUDUpdate(player_t *player)
if (player->karthud[khud_trickcool])
player->karthud[khud_trickcool]--;
if (player->positiondelay)
player->positiondelay--;
if (!(player->pflags & PF_FAULT))
player->karthud[khud_fault] = 0;
else if (player->karthud[khud_fault] > 0 && player->karthud[khud_fault] <= 2*TICRATE)
@ -10080,9 +10083,6 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
}
}
if (player->positiondelay)
player->positiondelay--;
// Prevent ring misfire
if (!(cmd->buttons & BT_ATTACK))
{