mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
remove excess generate_new_guest, make park_generate_new_guest public
I noticed there is an extra generate_new_guest which calls park_generate_new_guest. This can be removed in favor of just making park_generate_new_guest public. This also allows potential in the future for customized trams, such as a group of angry people arriving to trash the park or something like that.
This commit is contained in:
@@ -278,10 +278,8 @@ static void cheat_clear_loan()
|
||||
|
||||
static void cheat_generate_guests(sint32 count)
|
||||
{
|
||||
sint32 i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
generate_new_guest();
|
||||
for (sint32 i = 0; i < count; i++)
|
||||
park_generate_new_guest();
|
||||
|
||||
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ static void get_random_peep_spawn(rct2_peep_spawn *spawn)
|
||||
}
|
||||
}
|
||||
|
||||
static rct_peep *park_generate_new_guest()
|
||||
rct_peep *park_generate_new_guest()
|
||||
{
|
||||
rct_peep *peep = NULL;
|
||||
rct2_peep_spawn spawn;
|
||||
@@ -514,12 +514,6 @@ static rct_peep *park_generate_new_guest()
|
||||
return peep;
|
||||
}
|
||||
|
||||
//This is called via the cheat window.
|
||||
void generate_new_guest()
|
||||
{
|
||||
park_generate_new_guest();
|
||||
}
|
||||
|
||||
static rct_peep *park_generate_new_guest_due_to_campaign(sint32 campaign)
|
||||
{
|
||||
rct_peep *peep = park_generate_new_guest();
|
||||
|
||||
@@ -89,7 +89,7 @@ sint32 calculate_park_rating();
|
||||
money32 calculate_park_value();
|
||||
money32 calculate_company_value();
|
||||
void reset_park_entrances();
|
||||
void generate_new_guest();
|
||||
rct_peep * park_generate_new_guest();
|
||||
|
||||
void park_update();
|
||||
void park_update_histories();
|
||||
|
||||
Reference in New Issue
Block a user