1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Prevent Explode cheat from breaking rides when peeps are loading

This commit is contained in:
duncanspumpkin
2016-09-26 18:13:18 +01:00
parent ce74ca9d5d
commit d6e13a38e1

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;
}