1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00

Merge pull request #423 from Lihis/fix-380

Fix pausing issues
This commit is contained in:
darkf 2018-04-30 04:30:13 -05:00 committed by GitHub
commit 66552a99c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,9 +415,9 @@ int RWGame::run() {
auto now = chrono::steady_clock::now();
auto deltaTime = chrono::duration<float>(now - lastFrame).count();
lastFrame = now;
accumulatedTime += deltaTime;
if(!world->isPaused()) {
accumulatedTime += deltaTime;
world->dynamicsWorld->stepSimulation(deltaTime * timescale, kMaxPhysicsSubSteps, kPhysicsTimeStep);
}