1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-03 17:19:46 +02:00

Minor changes

This commit is contained in:
husho 2018-05-26 22:32:33 +03:00 committed by GitHub
parent 74df3c7e38
commit 950ed6d6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}