mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-15 15:02:34 +02:00
Prevent traffic from spawning in cutscenes
This commit is contained in:
parent
1308342f8f
commit
bb9e368dca
@ -525,7 +525,10 @@ void RWGame::tick(float dt) {
|
|||||||
currentCam.getView());
|
currentCam.getView());
|
||||||
// Use the current camera position to spawn pedestrians.
|
// Use the current camera position to spawn pedestrians.
|
||||||
world->cleanupTraffic(currentCam);
|
world->cleanupTraffic(currentCam);
|
||||||
world->createTraffic(currentCam);
|
// Only create new traffic outside cutscenes
|
||||||
|
if (!state.currentCutscene) {
|
||||||
|
world->createTraffic(currentCam);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user