Don't reset timetrialparlost every frame during countdown

Otherwise, if the timer ticked up past the par (via using the unfocus
pause or pause menu), it would result in the sad squeak being played
every frame because the game would constantly be setting
timetrialparlost, then moving to the code block below, assuming that
since timetrialparlost that we haven't lost the par already, and playing
the squeak.

timetrialparlost gets reset in hardreset() and startgamemode() anyways,
so there's no need to be constantly resetting this variable.

Fixes #699.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-04-13 17:51:24 -04:00
1 parent 3728edc335
commit 54c0a8a109
1 file changed
-1
-1
View File
@@ -731,7 +731,6 @@ void gamelogic(void)
if (game.timetrialcountdown > 0)
{
game.timetrialparlost = false;
game.hascontrol = true;
game.timetrialcountdown--;
if (game.timetrialcountdown > 30)