summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 363a30ad4..4ed04a20f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -543,10 +543,28 @@ void Game::logic()
actorSpriteManager->logic();
if (particleEngine)
particleEngine->update();
+
+ cur_time = static_cast<int>(time(nullptr));
+}
+
+void Game::slowLogic()
+{
+ if (player_node)
+ player_node->slowLogic();
+ if (botCheckerWindow)
+ botCheckerWindow->slowLogic();
+ if (debugWindow)
+ debugWindow->slowLogic();
+ if (killStats)
+ killStats->update();
+ if (socialWindow)
+ socialWindow->slowLogic();
+ if (whoIsOnline)
+ whoIsOnline->slowLogic();
+
if (mCurrentMap)
mCurrentMap->update();
- cur_time = static_cast<int>(time(nullptr));
Being::reReadConfig();
if (killStats)
killStats->recalcStats();
@@ -597,6 +615,7 @@ void Game::logic()
disconnectedDialog = nullptr;
}
}
+
}
void Game::adjustPerfomance()