Removes unused g_GameRestarted forgotten in 7ce4552f5e.

This was SVN commit r25885.
This commit is contained in:
vladislavbelov 2021-09-01 19:48:09 +00:00
parent 55f9d78e7e
commit eaddc92816
4 changed files with 1 additions and 13 deletions

View file

@ -59,8 +59,6 @@
#include <cmath>
#include <vector>
extern bool g_GameRestarted;
namespace
{

View file

@ -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();
}

View file

@ -54,7 +54,6 @@
#include <fstream>
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;
}

View file

@ -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;