diff --git a/src/park.c b/src/park.c index 741137e30d..027c08aa26 100644 --- a/src/park.c +++ b/src/park.c @@ -83,7 +83,7 @@ void park_init() RCT2_GLOBAL(0x01357846, uint16) = 0; RCT2_GLOBAL(0x013573FE, uint16) = 0; RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_PARK_RATING, uint16) = 0; - RCT2_GLOBAL(RCT2_ADDRESS_GUEST_GENERATION_PROBABILITY, uint16) = 0; + _guestGenerationProbability = 0; RCT2_GLOBAL(RCT2_TOTAL_RIDE_VALUE, uint16) = 0; RCT2_GLOBAL(0x01357CF4, sint32) = -1; @@ -580,4 +580,13 @@ void park_update() // Generate new guests park_generate_new_guests(); +} + +/** + * + * rct2: 0x0066A231 + */ +void park_update_histories() +{ + RCT2_CALLPROC_EBPSAFE(0x0066A231); } \ No newline at end of file diff --git a/src/park.h b/src/park.h index 658ee71023..94a98789fc 100644 --- a/src/park.h +++ b/src/park.h @@ -80,5 +80,6 @@ money32 calculate_company_value(); void reset_park_entrances(); void park_update(); +void park_update_histories(); #endif diff --git a/src/scenario.c b/src/scenario.c index 01b656626d..51ea46cc00 100644 --- a/src/scenario.c +++ b/src/scenario.c @@ -616,7 +616,7 @@ void scenario_update() break; } } - RCT2_CALLPROC_EBPSAFE(0x0066A231); // update histories (finance, ratings, etc) + park_update_histories(); park_calculate_size(); }