mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +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:
parent
32562f03a9
commit
c870df4e5b
1 changed files with 7 additions and 2 deletions
|
@ -7838,8 +7838,13 @@ void Game::invalidate_ndm_trophy(void)
|
||||||
nodeatheligible = false;
|
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)
|
switch (slowdown)
|
||||||
{
|
{
|
||||||
case 30:
|
case 30:
|
||||||
|
@ -7868,7 +7873,7 @@ int Game::get_timestep(void)
|
||||||
switch (gamestate)
|
switch (gamestate)
|
||||||
{
|
{
|
||||||
case GAMEMODE:
|
case GAMEMODE:
|
||||||
return get_framerate(slowdown);
|
return get_framerate(slowdown, deathseq);
|
||||||
default:
|
default:
|
||||||
return 34;
|
return 34;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue