Fixed server-only execution.

This commit is contained in:
hiker 2017-11-08 01:25:25 +11:00
parent a67be44422
commit 5b9dc6895d
2 changed files with 6 additions and 0 deletions

View File

@ -100,7 +100,9 @@ void Screen::init()
*/ */
void Screen::push() void Screen::push()
{ {
#ifndef SERVER_ONLY
StateManager::get()->pushScreen(this); StateManager::get()->pushScreen(this);
#endif
} // push } // push
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -152,8 +152,12 @@ void StateManager::resetActivePlayers()
bool StateManager::throttleFPS() bool StateManager::throttleFPS()
{ {
#ifndef SERVER_ONLY
return m_game_mode != GUIEngine::GAME && return m_game_mode != GUIEngine::GAME &&
GUIEngine::getCurrentScreen()->throttleFPS(); GUIEngine::getCurrentScreen()->throttleFPS();
#else
return true;
#endif
} // throttleFPS } // throttleFPS
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------