From aacef89973c22b9dca9e88f5938bf58777319e7d Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 17 Mar 2015 14:41:57 +0100 Subject: [PATCH] Reset build dates that are in the future --- src/windows/ride.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows/ride.c b/src/windows/ride.c index b5e12c8237..ca3cdda487 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -5877,10 +5877,10 @@ static void window_ride_customer_paint() y += 2; // Age + //Reset build date to current if it's in the future + ride->build_date=min(ride->build_date,RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, uint16)); + age = (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, uint16) - ride->build_date) / 8; - if (age < 0) { - age +=8192; - } stringId = age == 0 ? STR_BUILT_THIS_YEAR : age == 1 ?