1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +01:00

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.
This commit is contained in:
Misa 2024-09-15 23:53:56 -07:00 committed by Misa Elizabeth Kai
parent 32562f03a9
commit c870df4e5b

View file

@ -7838,8 +7838,13 @@ void Game::invalidate_ndm_trophy(void)
nodeatheligible = false;
}
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:
@ -7868,7 +7873,7 @@ int Game::get_timestep(void)
switch (gamestate)
{
case GAMEMODE:
return get_framerate(slowdown);
return get_framerate(slowdown, deathseq);
default:
return 34;
}