Prevent Explode cheat from breaking rides when peeps are loading

This commit is contained in:
duncanspumpkin committed 2016-09-26 18:13:18 +01:00
1 parent ce74ca9d5d
commit d6e13a38e1
1 file changed
+10
+10
View File
@@ -352,6 +352,16 @@ static void cheat_explode_guests()
rct_peep *peep;
FOR_ALL_GUESTS(sprite_index, peep) {
// To prevent blowing up peeps that will break
// ride vehicle logic.
if (peep->state == PEEP_STATE_ENTERING_RIDE ||
peep->state == PEEP_STATE_QUEUING_FRONT ||
peep->state == PEEP_STATE_LEAVING_RIDE ||
peep->state == PEEP_STATE_ON_RIDE ||
peep->state == PEEP_STATE_QUEUING) {
continue;
}
if (scenario_rand_max(6) == 0) {
peep->peep_flags |= PEEP_FLAGS_EXPLODE;
}