diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:31:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:31:46 +0000 |
commit | 798f5a860876ac3f61e6ecc989e3086caac480bd (patch) | |
tree | 0681790969f7719b7b9731f871f483f51618237b /src/dock_gui.cpp | |
parent | a8c4efcff49b3377b9bdd748b33dbad2094f9eaa (diff) | |
download | openttd-798f5a860876ac3f61e6ecc989e3086caac480bd.tar.xz |
(svn r23102) -Codechange: remove the remaining pointless multiplications by TILE_HEIGHT
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 31ee24338..d1a76ed12 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -60,7 +60,7 @@ void CcBuildCanal(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p static TileIndex GetOtherAqueductEnd(TileIndex tile_from, TileIndex *tile_to = NULL) { uint z; - DiagDirection dir = GetInclinedSlopeDirection(GetTilePixelSlope(tile_from, &z)); + DiagDirection dir = GetInclinedSlopeDirection(GetTileSlope(tile_from, &z)); /* If the direction isn't right, just return the next tile so the command * complains about the wrong slope instead of the ends not matching up. @@ -79,7 +79,7 @@ static TileIndex GetOtherAqueductEnd(TileIndex tile_from, TileIndex *tile_to = N if (length > max_length) break; - if (GetTileMaxPixelZ(endtile) > z) { + if (GetTileMaxZ(endtile) > z) { if (tile_to != NULL) *tile_to = endtile; break; } |