1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-03 17:19:46 +02:00

Prevent traffic from spawning in cutscenes

This commit is contained in:
Daniel Evans 2017-01-15 00:58:13 +00:00
parent 1308342f8f
commit bb9e368dca

View File

@ -525,7 +525,10 @@ void RWGame::tick(float dt) {
currentCam.getView());
// Use the current camera position to spawn pedestrians.
world->cleanupTraffic(currentCam);
world->createTraffic(currentCam);
// Only create new traffic outside cutscenes
if (!state.currentCutscene) {
world->createTraffic(currentCam);
}
}
}
}