From dee50239be8fff566b3ca687bc70900b391a8164 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 16 Aug 2017 20:11:07 +0500 Subject: 2017-08-16 --- src/ThreadGame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ThreadGame.cpp') 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()); -- cgit v1.2.3