1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Prevent peeps from spawning in the scenario editor.

Regression from 721dc00778.
This commit is contained in:
Aaron van Geffen
2018-05-25 12:32:40 +02:00
committed by GitHub
parent 7be4072eef
commit 2420a16e9e

View File

@@ -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)
{