Fixed server-only execution.
This commit is contained in:
parent
a67be44422
commit
5b9dc6895d
@ -100,7 +100,9 @@ void Screen::init()
|
||||
*/
|
||||
void Screen::push()
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
StateManager::get()->pushScreen(this);
|
||||
#endif
|
||||
} // push
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -152,8 +152,12 @@ void StateManager::resetActivePlayers()
|
||||
|
||||
bool StateManager::throttleFPS()
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
return m_game_mode != GUIEngine::GAME &&
|
||||
GUIEngine::getCurrentScreen()->throttleFPS();
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
} // throttleFPS
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user