1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-09-29 17:57:23 +02:00

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.
This commit is contained in:
Misa 2020-05-02 13:58:25 -07:00 committed by Ethan Lee
parent 49fbe18d34
commit c009ab67d9

View file

@ -330,10 +330,14 @@ int main(int argc, char *argv[])
{ {
timesteplimit = 24; timesteplimit = 24;
} }
else else if (game.gamestate == GAMEMODE || game.gamestate == MAPMODE || game.gamestate == TELEPORTERMODE)
{ {
timesteplimit = game.gameframerate; timesteplimit = game.gameframerate;
} }
else
{
timesteplimit = 34;
}
while (accumulator >= timesteplimit) while (accumulator >= timesteplimit)
{ {