mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-15 15:02:34 +02:00
Pause chase when the game paused
This commit is contained in:
parent
7b0b82c502
commit
c4f532fd56
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user