Change: [NewGRF] Treat house max year 0xFFFF as MAX_YEAR. (#12740)

pull/741/head
Peter Nelson 4 months ago committed by GitHub
parent 3827229c74
commit 96fc367bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save