1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 03:19:10 +00:00

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

This commit is contained in:
2024-06-01 12:54:49 +01:00
committed by GitHub
parent 3827229c74
commit 96fc367bcf

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