mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix remove all guests cheat
This commit is contained in:
parent
e32a7ab01a
commit
6fade38d36
|
@ -664,16 +664,6 @@ static void cheat_give_all_guests(int object)
|
||||||
|
|
||||||
static void cheat_remove_all_guests()
|
static void cheat_remove_all_guests()
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
rct_ride *ride;
|
|
||||||
|
|
||||||
FOR_ALL_RIDES(i, ride)
|
|
||||||
{
|
|
||||||
ride_clear_for_construction(i);
|
|
||||||
ride_set_status(i, RIDE_STATUS_CLOSED);
|
|
||||||
}
|
|
||||||
window_invalidate_by_class(WC_RIDE);
|
|
||||||
|
|
||||||
rct_peep *peep;
|
rct_peep *peep;
|
||||||
uint16 spriteIndex, nextSpriteIndex;
|
uint16 spriteIndex, nextSpriteIndex;
|
||||||
|
|
||||||
|
@ -685,6 +675,19 @@ static void cheat_remove_all_guests()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int i;
|
||||||
|
rct_ride *ride;
|
||||||
|
|
||||||
|
FOR_ALL_RIDES(i, ride)
|
||||||
|
{
|
||||||
|
ride_clear_for_construction(i);
|
||||||
|
ride_set_status(i, RIDE_STATUS_CLOSED);
|
||||||
|
|
||||||
|
for(int i=0;i<4;i++) {
|
||||||
|
ride->first_peep_in_queue[i]=0xFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window_invalidate_by_class(WC_RIDE);
|
||||||
gfx_invalidate_screen();
|
gfx_invalidate_screen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue