diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 5e913909..73fec9e0 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -352,7 +352,6 @@ void Game::init(void) skipfakeload = false; ghostsenabled = false; - gametimer = 0; cliplaytest = false; playx = 0; diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index 7596325a..bae820a2 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -436,8 +436,6 @@ public: void returntoeditor(void); #endif - int gametimer; - bool inline inspecial(void) { return inintermission || insecretlab || intimetrial || nodeathmode; diff --git a/desktop_version/src/RenderFixed.cpp b/desktop_version/src/RenderFixed.cpp index e84c79b0..9c23c203 100644 --- a/desktop_version/src/RenderFixed.cpp +++ b/desktop_version/src/RenderFixed.cpp @@ -130,7 +130,7 @@ void gamerenderfixed(void) { if (map.custommode && !map.custommodeforreal) { - if (game.gametimer % 3 == 0) + if (game.frames % 3 == 0) { int i = obj.getplayer(); GhostInfo ghost; diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 823ef0ef..0f8036b0 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -612,7 +612,6 @@ int main(int argc, char *argv[]) #endif key.isActive = true; - game.gametimer = 0; gamestate_funcs = get_gamestate_funcs(game.gamestate, &num_gamestate_funcs); loop_assign_active_funcs(); @@ -747,7 +746,6 @@ static void focused_begin(void) { Mix_Resume(-1); Mix_ResumeMusic(); - game.gametimer++; } static void focused_end(void)