Mercurial > hg > openttd
changeset 7762:15549e3a048b draft
(svn r11308) -Fix (r9315): Change the house id as well as the house spec when using an overridden town building, since the house id is the one that's used to actually build the house.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Sat, 20 Oct 2007 10:19:23 +0000 |
parents | f47786d54a19 |
children | b66a3cb83e69 |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1707,7 +1707,10 @@ hs = GetHouseSpecs(house); if (_loaded_newgrf_features.has_newhouses) { - if (hs->override != 0) hs = GetHouseSpecs(hs->override); + if (hs->override != 0) { + house = hs->override; + hs = GetHouseSpecs(house); + } if ((hs->extra_flags & BUILDING_IS_HISTORICAL) && !_generating_world) continue;