summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:31:13 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:31:13 +0000
commita8c4efcff49b3377b9bdd748b33dbad2094f9eaa (patch)
treea99152d10f7956520cdcd9fc316ab3e6a537bb24 /src/town_cmd.cpp
parent1dc685aeea202f1677f915d390dc13ce3e18c462 (diff)
downloadopenttd-a8c4efcff49b3377b9bdd748b33dbad2094f9eaa.tar.xz
(svn r23101) -Codechange: remove pointless multiplications by TILE_HEIGHT from the station/object building code
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp4
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) {