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