From 950ed6d6c93af66a9f2493f7b171ef153f053c7e Mon Sep 17 00:00:00 2001 From: husho Date: Sat, 26 May 2018 22:32:33 +0300 Subject: [PATCH] Minor changes --- rwgame/RWGame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rwgame/RWGame.cpp b/rwgame/RWGame.cpp index 0ca4afc3..33d8195f 100644 --- a/rwgame/RWGame.cpp +++ b/rwgame/RWGame.cpp @@ -370,7 +370,7 @@ int RWGame::run() { namespace chrono = std::chrono; auto lastFrame = chrono::steady_clock::now(); - float deltaTime = GAME_TIMESTEP; + const float deltaTime = GAME_TIMESTEP; float accumulatedTime = 0.0f; // Loop until we run out of states. @@ -435,7 +435,7 @@ int RWGame::run() { deltaTime * world->state->basic.timeScale; RW_PROFILE_BEGIN("Update"); - while (accumulatedTime >= deltaTime && !world->isPaused()) { + while (accumulatedTime >= deltaTime) { if (!StateManager::currentState()) { break; }