Factor timestep calculation out to Game function

This is so we can grab the game's timestep anywhere else in the codebase
without copy-pasting it.
This commit is contained in:
Misa
2021-04-02 11:50:30 -07:00
committed by Ethan Lee
parent f8f6f3b96e
commit f6ea05f521
3 changed files with 32 additions and 30 deletions

View File

@@ -292,6 +292,7 @@ public:
bool colourblindmode;
bool noflashingmode;
int slowdown;
int get_timestep(void);
bool nodeathmode;
int gameoverdelay;