From 1d0a24e419487a817bfc9025f89134f32d72fb93 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Fri, 23 May 2014 17:49:42 +0900 Subject: [PATCH] replace on ride photo value with simpler constant --- src/ride_ratings.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ride_ratings.c b/src/ride_ratings.c index fa6ecb97aa..5603120342 100644 --- a/src/ride_ratings.c +++ b/src/ride_ratings.c @@ -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);