mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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.
This commit is contained in:
parent
1a6251937e
commit
3a361422fa
@ -1707,7 +1707,10 @@ static void DoBuildTownHouse(Town *t, TileIndex tile)
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user