summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 253c4bff2..195492335 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -390,7 +390,8 @@ Game::Game():
mAdjustPerfomance(config.getBoolValue("adjustPerfomance")),
mLowerCounter(0),
mPing(0),
- mTime(cur_time + 1)
+ mTime(cur_time + 1),
+ mTime2(cur_time + 10)
{
touchManager.setInGame(true);
spellManager = new SpellManager;
@@ -620,6 +621,13 @@ void Game::slowLogic()
Being::reReadConfig();
if (killStats)
killStats->recalcStats();
+
+ if (time > mTime2 || mTime2 - time > 10)
+ {
+ mTime2 = time + 10;
+ config.writeUpdated();
+ serverConfig.writeUpdated();
+ }
}
if (shopWindow)