1
0
Fork 0

Change: [NewGRF] Treat house max year 0xFFFF as MAX_YEAR.

pull/12740/head
Peter Nelson 2024-06-01 10:42:40 +01:00
parent 3827229c74
commit bc803d6cc0
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 0 deletions

View File

@ -2594,6 +2594,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
case 0x22: // long maximum year
housespec->max_year = buf->ReadWord();
if (housespec->max_year == UINT16_MAX) housespec->max_year = CalendarTime::MAX_YEAR;
break;
case 0x23: { // variable length cargo types accepted