1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01: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) { void RWGame::tick(float dt) {
State* currState = StateManager::get().states.back().get(); State* currState = StateManager::get().states.back().get();
world->chase.update(dt);
static float clockAccumulator = 0.f; static float clockAccumulator = 0.f;
if (currState->shouldWorldUpdate()) { if (currState->shouldWorldUpdate()) {
world->chase.update(dt);
// Clear out any per-tick state. // Clear out any per-tick state.
world->clearTickData(); world->clearTickData();