1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

replace on ride photo value with simpler constant

This commit is contained in:
Kevin Burke
2014-05-23 17:49:42 +09:00
parent eccb4af048
commit 1d0a24e419

View File

@@ -91,8 +91,11 @@ uint16 compute_upkeep(rct_ride *ride)
upkeep += cuml;
if (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_RIDE_PHOTO) {
// this value seems to be 40 for every ride
upkeep += RCT2_GLOBAL(0x0097E3AE, type_idx, uint16);
// The original code read from a table starting at 0x0097E3AE and
// incrementing by 0x12 bytes between values. However, all of these
// values were 40. I have replaced the table lookup with the constant
// 40 in this case.
upkeep += 40;
}
eax = RCT2_GLOBAL(0x0097E3B0 + type_idx, uint16);