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:
parent
7b0b82c502
commit
c4f532fd56
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user