Fix FAULT text immediately disappearing the moment leveltime exceeds starttime+TICRATE

This commit is contained in:
toaster 2024-04-09 22:10:40 +01:00
parent cd9d8d59db
commit 7b9747593d

View file

@ -5066,16 +5066,7 @@ static void K_drawKartStartCountdown(void)
{
INT32 pnum = 0;
if (stplyr->lives <= 0 && stplyr->playerstate == PST_DEAD)
{
return;
}
if (stplyr->karthud[khud_fault] != 0 && stplyr->karthud[khud_finish] == 0)
{
K_drawKartFinish(false);
}
else if (leveltime >= introtime && leveltime < starttime-(3*TICRATE))
if (leveltime >= introtime && leveltime < starttime-(3*TICRATE))
{
if (numbulbs > 1)
K_drawKartStartBulbs();
@ -6293,7 +6284,15 @@ void K_drawKartHUD(void)
}
// Draw the countdowns after everything else.
if (starttime != introtime
if (stplyr->lives <= 0 && stplyr->playerstate == PST_DEAD)
{
;
}
else if (stplyr->karthud[khud_fault] != 0 && stplyr->karthud[khud_finish] == 0)
{
K_drawKartFinish(false);
}
else if (starttime != introtime
&& leveltime >= introtime
&& leveltime < starttime+TICRATE)
{