diff options
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 24367fa13..fcf9852dc 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1935,7 +1935,7 @@ static inline bool CheckBuildHouseSameZ(TileIndex tile, TownID town, uint z, boo if (!CanBuildHouseHere(tile, town, noslope)) return false; /* if building on slopes is allowed, there will be flattening foundation (to tile max z) */ - if (GetTileMaxPixelZ(tile) != z) return false; + if (GetTileMaxZ(tile) != z) return false; return true; } @@ -2139,7 +2139,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile) houses[num++] = (HouseID)i; } - uint maxz = GetTileMaxPixelZ(tile); + uint maxz = GetTileMaxZ(tile); TileIndex baseTile = tile; while (probability_max > 0) { |