C4Application: Remove unused flag IsInGameTick

alut-include-path
Nicolas Hake 2017-01-07 17:15:04 +01:00
parent 56fa6ca157
commit 71f8cb0699
2 changed files with 0 additions and 6 deletions

View File

@ -53,7 +53,6 @@ C4Application::C4Application():
QuitAfterGame(false),
CheckForUpdates(false),
restartAtEnd(false),
is_in_game_tick(false),
pGamePadControl(nullptr),
AppState(C4AS_None),
pGameTimer(nullptr)
@ -669,7 +668,6 @@ void C4Application::QuitGame()
void C4Application::GameTick()
{
is_in_game_tick = true;
// Exec depending on game state
switch (AppState)
{
@ -743,7 +741,6 @@ void C4Application::GameTick()
if (pGamePadControl) pGamePadControl->Execute();
break;
}
is_in_game_tick = false;
}
void C4Application::Draw()

View File

@ -36,8 +36,6 @@ public:
~C4Application();
// Flag for restarting the engine at the end
bool restartAtEnd;
// Flag set during game tick
bool is_in_game_tick;
// main System.ocg in working folder
C4Group SystemGroup;
C4MusicSystem MusicSystem;
@ -52,7 +50,6 @@ public:
void ClearCommandLine();
// Tick timing
void GameTick();
bool IsInGameTick() const { return is_in_game_tick; }
void Draw();
// System.ocg helper funcs
bool OpenSystemGroup() { return SystemGroup.IsOpen() || SystemGroup.Open(C4CFN_System); }