1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-16 16:09:42 +01:00

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 2021-04-13 14:31:26 -07:00 committed by Ethan Lee
parent 3728edc335
commit 54c0a8a109

View file

@ -731,7 +731,6 @@ void gamelogic(void)
if (game.timetrialcountdown > 0) if (game.timetrialcountdown > 0)
{ {
game.timetrialparlost = false;
game.hascontrol = true; game.hascontrol = true;
game.timetrialcountdown--; game.timetrialcountdown--;
if (game.timetrialcountdown > 30) if (game.timetrialcountdown > 30)