From eaddc92816400a761d9bd12b779558fbfdbdc77e Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Wed, 1 Sep 2021 19:48:09 +0000 Subject: [PATCH] Removes unused g_GameRestarted forgotten in 7ce4552f5e. This was SVN commit r25885. --- source/gui/ObjectTypes/CMiniMap.cpp | 2 -- source/main.cpp | 5 ----- source/ps/Game.cpp | 3 --- source/ps/tests/stub_impl_hack.h | 4 +--- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/source/gui/ObjectTypes/CMiniMap.cpp b/source/gui/ObjectTypes/CMiniMap.cpp index de8884fca9..dfaacc4618 100644 --- a/source/gui/ObjectTypes/CMiniMap.cpp +++ b/source/gui/ObjectTypes/CMiniMap.cpp @@ -59,8 +59,6 @@ #include #include -extern bool g_GameRestarted; - namespace { diff --git a/source/main.cpp b/source/main.cpp index 4d92ddc8cc..c5ecd824c9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -103,9 +103,6 @@ that of Atlas depending on commandline parameters. extern CStrW g_UniqueLogPostfix; -// Marks terrain as modified so the minimap can repaint (is there a cleaner way of handling this?) -bool g_GameRestarted = false; - // Determines the lifetime of the mainloop enum ShutdownType { @@ -461,8 +458,6 @@ static void Frame() g_Profiler.Frame(); - g_GameRestarted = false; - LimitFPS(); } diff --git a/source/ps/Game.cpp b/source/ps/Game.cpp index 1105168b0e..3962bfa2fd 100644 --- a/source/ps/Game.cpp +++ b/source/ps/Game.cpp @@ -54,7 +54,6 @@ #include -extern bool g_GameRestarted; extern GameLoopState* g_AtlasGameLoop; /** @@ -344,8 +343,6 @@ PSRETURN CGame::ReallyStartGame() if (CProfileManager::IsInitialised()) g_Profiler.StructuralReset(); - g_GameRestarted = true; - return 0; } diff --git a/source/ps/tests/stub_impl_hack.h b/source/ps/tests/stub_impl_hack.h index 96b4d40a19..a54ccbfefe 100644 --- a/source/ps/tests/stub_impl_hack.h +++ b/source/ps/tests/stub_impl_hack.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 Wildfire Games. +/* Copyright (C) 2021 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -20,8 +20,6 @@ // usually defined by main.cpp, used by engine's scripting/ScriptFunctions.cpp, // must be included here to placate linker. -bool g_GameRestarted; - bool IsQuitRequested() { return false;