summaryrefslogtreecommitdiff
path: root/src/game-server/main-game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r--src/game-server/main-game.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index 93c2f1fa..86dc7e22 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -310,8 +310,7 @@ int main(int argc, char *argv[])
// Print world time at 10 second intervals to show we're alive
if (worldTime % 100 == 0) {
LOG_INFO("World time: " << worldTime);
- // force sending changes to the account serber every 10 secs.
- accountHandler->syncChanges(true);
+
}
if (accountHandler->isConnected())
@@ -319,6 +318,11 @@ int main(int argc, char *argv[])
// Handle all messages that are in the message queues
accountHandler->process();
+ if (worldTime % 100 == 0) {
+ accountHandler->syncChanges(true);
+ // force sending changes to the account server every 10 secs.
+ }
+
if (worldTime % 300 == 0)
{
accountHandler->sendStatistics();