Move week update for park to park class

This commit is contained in:
Ted John 2017-07-23 14:44:39 +01:00 committed by Aaron van Geffen
parent 1db2a4986f
commit 665f34326b
3 changed files with 9 additions and 8 deletions

View File

@ -345,8 +345,6 @@ static void scenario_week_update()
break;
}
}
park_update_histories();
park_calculate_size();
}
static void scenario_fortnight_update()

View File

@ -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();

View File

@ -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);