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,9 +525,12 @@ void RWGame::tick(float dt) {
|
||||
currentCam.getView());
|
||||
// Use the current camera position to spawn pedestrians.
|
||||
world->cleanupTraffic(currentCam);
|
||||
// Only create new traffic outside cutscenes
|
||||
if (!state.currentCutscene) {
|
||||
world->createTraffic(currentCam);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RWGame::render(float alpha, float time) {
|
||||
|
Loading…
Reference in New Issue
Block a user