Skip to content

Commit

Permalink
Remove slowdown during death animation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
InfoTeddy committed Sep 16, 2024
1 parent 8b62bb1 commit 115637c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions desktop_version/src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 115637c

Please sign in to comment.