mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Change: [NewGRF] Treat house max year 0xFFFF as MAX_YEAR. (#12740)
(cherry picked from commit 96fc367bcf
)
This commit is contained in:
parent
1154fff48a
commit
1e55fd4667
@ -2618,6 +2618,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, con
|
|||||||
|
|
||||||
case 0x22: // long maximum year
|
case 0x22: // long maximum year
|
||||||
housespec->max_year = buf->ReadWord();
|
housespec->max_year = buf->ReadWord();
|
||||||
|
if (housespec->max_year == UINT16_MAX) housespec->max_year = CalTime::MAX_YEAR;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x23: { // variable length cargo types accepted
|
case 0x23: { // variable length cargo types accepted
|
||||||
|
Loading…
Reference in New Issue
Block a user