1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

fix compile error and add update history placeholder

This commit is contained in:
IntelOrca
2014-05-27 00:35:14 +01:00
parent a8182b945b
commit 6d824fd3a8
3 changed files with 12 additions and 2 deletions

View File

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

View File

@@ -80,5 +80,6 @@ money32 calculate_company_value();
void reset_park_entrances();
void park_update();
void park_update_histories();
#endif

View File

@@ -616,7 +616,7 @@ void scenario_update()
break;
}
}
RCT2_CALLPROC_EBPSAFE(0x0066A231); // update histories (finance, ratings, etc)
park_update_histories();
park_calculate_size();
}