mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix remove all guests cheat
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user