From 115637ce87794c1fc9a3e9a7f908cddaed7b28ea Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 15 Sep 2024 23:53:56 -0700 Subject: [PATCH] Remove slowdown during death animation Some discussion on the Discord server resulted in this change. It's a quality-of-life improvement where, if the game is in slowdown mode, it will return to 100% speed for the duration of the death animation. The reasoning is obvious. There is nothing to do during the death animation, so making it take longer during slowdown is just an annoyance to the player, almost a penalty for them using an accessibility option. This is the same reason why slowdown no longer applies in menus, etc. --- desktop_version/src/Game.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 1d7bad140c..88315c61af 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -7820,8 +7820,13 @@ void Game::copyndmresults(void) SDL_memcpy(ndmresultcrewstats, crewstats, sizeof(ndmresultcrewstats)); } -static inline int get_framerate(const int slowdown) +static inline int get_framerate(const int slowdown, const int deathseq) { + if (deathseq != -1) + { + return 34; + } + switch (slowdown) { case 30: @@ -7850,7 +7855,7 @@ int Game::get_timestep(void) switch (gamestate) { case GAMEMODE: - return get_framerate(slowdown); + return get_framerate(slowdown, deathseq); default: return 34; }