summaryrefslogtreecommitdiffstats
path: root/src/ThreadGame.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-16 17:11:07 +0200
commitdee50239be8fff566b3ca687bc70900b391a8164 (patch)
tree6ff6ae2e8e2ea5109d031be8c588f4b8f38f68eb /src/ThreadGame.cpp
parent2017-08-12 (diff)
downloadAltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.gz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.bz2
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.lz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.xz
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.tar.zst
AltCraft-dee50239be8fff566b3ca687bc70900b391a8164.zip
Diffstat (limited to '')
-rw-r--r--src/ThreadGame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ThreadGame.cpp b/src/ThreadGame.cpp
index 74802bb..d3750ea 100644
--- a/src/ThreadGame.cpp
+++ b/src/ThreadGame.cpp
@@ -84,8 +84,8 @@ void ThreadGame::Execute() {
while (isRunning) {
if (gs != nullptr)
gs->Update(timer.GetRealDeltaS());
- listener.HandleEvent();
- if (gs != nullptr) {
+ listener.HandleEvent();
+ if (gs != nullptr) {
gs->UpdatePacket();
if (isMoving[GameState::FORWARD])
gs->HandleMovement(GameState::FORWARD, timer.GetRealDeltaS());