mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix negative ride ages
This commit is contained in:
parent
6fcfa32641
commit
d77d9e9a58
|
@ -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 ?
|
||||
|
|
Loading…
Reference in New Issue