mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID.
This commit is contained in:
parent
d938a4ffe6
commit
fd475d47d8
@ -1307,11 +1307,11 @@ static bool TownHouseChangeInfo(uint hid, int numinfo, int prop, byte **bufp, in
|
|||||||
|
|
||||||
/* The house being overridden must be an original house. */
|
/* The house being overridden must be an original house. */
|
||||||
if (override >= NEW_HOUSE_OFFSET) {
|
if (override >= NEW_HOUSE_OFFSET) {
|
||||||
grfmsg(2, "TownHouseChangeInfo: Attempt to override new house %u with house id %u. Ignoring.", override, hid);
|
grfmsg(2, "TownHouseChangeInfo: Attempt to override new house %u with house id %u. Ignoring.", override, hid + i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
_house_mngr.Add(hid, override);
|
_house_mngr.Add(hid + i, override);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case 0x16: // Periodic refresh multiplier
|
case 0x16: // Periodic refresh multiplier
|
||||||
|
Loading…
Reference in New Issue
Block a user