From bb9e368dcad3ab83eba3ceb2309d435d4866b525 Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Sun, 15 Jan 2017 00:58:13 +0000 Subject: [PATCH] Prevent traffic from spawning in cutscenes --- rwgame/RWGame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rwgame/RWGame.cpp b/rwgame/RWGame.cpp index f46c4257..62f7caaa 100644 --- a/rwgame/RWGame.cpp +++ b/rwgame/RWGame.cpp @@ -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); + } } } }