1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-08 18:09:45 +01:00

Remove script.hardreset() when restarting Time Trial

There's not really any need for it to be there. It gets called when the
Time Trial restarts, as restarting the Time Trial calls
script.startgamemode(), which calls script.hardreset() anyway.

Furthermore, since script.hardreset() is removed, we can also remove two
lines that are meant to work around the fact that everything gets reset,
which is now no longer the case.

Fixes #367.
This commit is contained in:
Misa 2020-08-14 18:43:14 -07:00 committed by Ethan Lee
parent c95b95f5b7
commit fb6635abec

View file

@ -1909,12 +1909,9 @@ void gameinput()
else if (game.intimetrial && graphics.fademode==0)
{
//Quick restart of time trial
script.hardreset();
if (graphics.setflipmode) graphics.flipmode = true;
graphics.fademode = 2;
game.completestop = true;
music.fadeout();
game.intimetrial = true;
game.quickrestartkludge = true;
}
else if (graphics.fademode==0)