Fix negative ride ages

This commit is contained in:
Michael Steenbeek 2015-03-17 10:45:33 +01:00
parent 6fcfa32641
commit d77d9e9a58
1 changed files with 3 additions and 0 deletions

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 ?