mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Default cargo label was not cleared (set to CT_INVALID) when using older 3-slot acceptance properties for house and industry tiles. Missed in #12053 and #12062.
This commit is contained in:
parent
3b01d31280
commit
d465257dd0
@ -2570,6 +2570,7 @@ static ChangeInfoResult TownHouseChangeInfo(uint hid, int numinfo, int prop, Byt
|
||||
} else {
|
||||
housespec->accepts_cargo[j] = cargo;
|
||||
}
|
||||
housespec->accepts_cargo_label[j] = CT_INVALID;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -3306,6 +3307,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
|
||||
uint16_t acctp = buf->ReadWord();
|
||||
tsp->accepts_cargo[prop - 0x0A] = GetCargoTranslation(GB(acctp, 0, 8), _cur.grffile);
|
||||
tsp->acceptance[prop - 0x0A] = Clamp(GB(acctp, 8, 8), 0, 16);
|
||||
tsp->accepts_cargo_label[prop - 0x0A] = CT_INVALID;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user