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

Pause chase when the game paused

This commit is contained in:
Waritnan Sookbuntherng 2017-10-12 23:27:05 +07:00 committed by Daniel Evans
parent 7b0b82c502
commit c4f532fd56

View File

@ -464,10 +464,10 @@ int RWGame::run() {
void RWGame::tick(float dt) {
State* currState = StateManager::get().states.back().get();
world->chase.update(dt);
static float clockAccumulator = 0.f;
if (currState->shouldWorldUpdate()) {
world->chase.update(dt);
// Clear out any per-tick state.
world->clearTickData();