summaryrefslogtreecommitdiffstats
path: root/src/ThreadGame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThreadGame.cpp')
-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());