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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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