summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-03 20:15:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-03 20:15:49 +0300
commit97a95e67ca713a306ae76f2d9bb804543f3c991d (patch)
tree00b67fbacdeee0d5010f0b14335126232408856b /src
parentc3baf8df436ed5635afa28fe6853be15658c5c99 (diff)
downloadplus-97a95e67ca713a306ae76f2d9bb804543f3c991d.tar.gz
plus-97a95e67ca713a306ae76f2d9bb804543f3c991d.tar.bz2
plus-97a95e67ca713a306ae76f2d9bb804543f3c991d.tar.xz
plus-97a95e67ca713a306ae76f2d9bb804543f3c991d.zip
Fix timers before connecting to server.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp1
-rw-r--r--src/game.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 023b17c3f..4d8f79eab 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1002,6 +1002,7 @@ int Client::gameExec()
BLOCK_START("Client::gameExec 4")
if (gui)
gui->logic();
+ cur_time = static_cast<int>(time(nullptr));
int k = 0;
while (lastTickTime != tick_time && k < 40)
{
diff --git a/src/game.cpp b/src/game.cpp
index 33369bf97..e4c72b5a9 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -606,7 +606,6 @@ void Game::logic()
if (mCurrentMap)
mCurrentMap->update();
- cur_time = static_cast<int>(time(nullptr));
BLOCK_END("Game::logic")
}