Fix remove all guests cheat

This commit is contained in:
Gymnasiast 2015-06-24 21:54:08 +02:00
parent e32a7ab01a
commit 6fade38d36
1 changed files with 13 additions and 10 deletions

View File

@ -664,16 +664,6 @@ static void cheat_give_all_guests(int object)
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;
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();
}