From fb6635abecafc02e1bba227f82f569d1a73c56be Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 14 Aug 2020 18:43:14 -0700 Subject: [PATCH] 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. --- desktop_version/src/Input.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index ad7d5a54..81ab2f47 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -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)