From 2420a16e9e7a447bc10ba7e8fbed571ebebdd6be Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Fri, 25 May 2018 12:32:40 +0200 Subject: [PATCH] Prevent peeps from spawning in the scenario editor. Regression from 721dc007784734c550c8e0364c2d3b2e4dfa572c. --- src/openrct2/world/Park.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index 8ad736ef7e..af6ec22bea 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -579,6 +579,10 @@ void Park::Initialise() void Park::Update() { + // TODO: move when GameState class is introduced. + if (gScreenFlags & (SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)) + return; + // Every 5 seconds approximately if (gCurrentTicks % 512 == 0) {