diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:31:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:31:13 +0000 |
commit | a8c4efcff49b3377b9bdd748b33dbad2094f9eaa (patch) | |
tree | a99152d10f7956520cdcd9fc316ab3e6a537bb24 /src/town_cmd.cpp | |
parent | 1dc685aeea202f1677f915d390dc13ce3e18c462 (diff) | |
download | openttd-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.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) { |