mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Fix negative ride ages
This commit is contained in:
@@ -5878,6 +5878,9 @@ static void window_ride_customer_paint()
|
||||
|
||||
// Age
|
||||
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 ?
|
||||
|
||||
Reference in New Issue
Block a user