mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 18:32:44 +01:00
commit
66552a99c8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user