From c009ab67d992de0ed09226a7d2cd467f5f9660bc Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 2 May 2020 13:58:25 -0700 Subject: [PATCH] Make slowdown only apply in GAMEMODE/MAPMODE/TELEPORTERMODE As much as it looks cool to have a slowly-scrolling background on the title screen, it's quite annoying that slowmode applying on the title screen mean that your keypresses are less responsive. --- desktop_version/src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index eb4d0fe1..25b653eb 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -330,10 +330,14 @@ int main(int argc, char *argv[]) { timesteplimit = 24; } - else + else if (game.gamestate == GAMEMODE || game.gamestate == MAPMODE || game.gamestate == TELEPORTERMODE) { timesteplimit = game.gameframerate; } + else + { + timesteplimit = 34; + } while (accumulator >= timesteplimit) {