From 6d824fd3a82c1c44e1148c22701585f348217195 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Tue, 27 May 2014 00:35:14 +0100 Subject: [PATCH] fix compile error and add update history placeholder --- src/park.c | 11 ++++++++++- src/park.h | 1 + src/scenario.c | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) 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(); }