Fixed server-only execution.
This commit is contained in:
parent
a67be44422
commit
5b9dc6895d
@ -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
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
@ -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
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user