From ab5285cf1e4a6ed0bd0ff3df060a0fbbc0c53924 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 18 Mar 2015 16:20:12 +0100 Subject: [PATCH] Don't reset built dates that are in the future --- src/windows/ride.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/windows/ride.c b/src/windows/ride.c index ca3cdda487..d3abee3bdb 100644 --- a/src/windows/ride.c +++ b/src/windows/ride.c @@ -5877,10 +5877,8 @@ 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 the ride has a build date that is in the future, show it as built this year. + age = max((RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_MONTH_YEAR, uint16) - ride->build_date) / 8, 0); stringId = age == 0 ? STR_BUILT_THIS_YEAR : age == 1 ?