Mercurial > hg > openttd
changeset 7160:0401478308b3 draft
(svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Wed, 04 Jul 2007 12:57:07 +0000 |
parents | dacb4ffcfd98 |
children | 85b2fbf61f79 |
files | src/newgrf.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1307,11 +1307,11 @@ /* The house being overridden must be an original house. */ 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; } - _house_mngr.Add(hid, override); + _house_mngr.Add(hid + i, override); } break; case 0x16: // Periodic refresh multiplier