summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index dc4f118a8..8f64b6b1e 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -995,21 +995,21 @@ int Client::gameExec()
BLOCK_END("Client::gameExec 3")
BLOCK_START("Client::gameExec 4")
+ if (gui)
+ gui->logic();
int k = 0;
while (lastTickTime != tick_time && k < 40)
{
- if (gui)
- gui->logic();
if (mGame)
mGame->logic();
else if (gui)
gui->handleInput();
- sound.logic();
-
++lastTickTime;
k ++;
}
+ sound.logic();
+
logic_count += k;
if (gui)
gui->slowLogic();