1
0
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:
Michael Steenbeek
2015-03-17 10:45:33 +01:00
parent 6fcfa32641
commit d77d9e9a58

View File

@@ -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 ?