mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Move week update for park to park class
This commit is contained in:
committed by
Aaron van Geffen
parent
1db2a4986f
commit
665f34326b
@@ -345,8 +345,6 @@ static void scenario_week_update()
|
||||
break;
|
||||
}
|
||||
}
|
||||
park_update_histories();
|
||||
park_calculate_size();
|
||||
}
|
||||
|
||||
static void scenario_fortnight_update()
|
||||
|
||||
@@ -607,6 +607,15 @@ void Park::Update()
|
||||
auto intent = Intent(INTENT_ACTION_UPDATE_PARK_RATING);
|
||||
context_broadcast_intent(&intent);
|
||||
}
|
||||
|
||||
// Every week
|
||||
if (date_is_week_start(gDateMonthTicks))
|
||||
{
|
||||
UpdateHistories();
|
||||
gParkSize = CalculateParkSize();
|
||||
window_invalidate_by_class(WC_PARK_INFORMATION);
|
||||
}
|
||||
|
||||
GenerateGuests();
|
||||
}
|
||||
|
||||
@@ -1098,11 +1107,6 @@ rct_peep * park_generate_new_guest()
|
||||
return _singleton->GenerateGuest();
|
||||
}
|
||||
|
||||
void park_update_histories()
|
||||
{
|
||||
_singleton->UpdateHistories();
|
||||
}
|
||||
|
||||
void park_reset_history()
|
||||
{
|
||||
_singleton->ResetHistories();
|
||||
|
||||
@@ -139,7 +139,6 @@ money32 calculate_company_value();
|
||||
void reset_park_entry();
|
||||
rct_peep * park_generate_new_guest();
|
||||
|
||||
void park_update_histories();
|
||||
void update_park_fences(sint32 x, sint32 y);
|
||||
void update_park_fences_around_tile(sint32 x, sint32 y);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user