summaryrefslogtreecommitdiff
path: root/tile.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-25 16:44:57 +0000
committertron <tron@openttd.org>2005-06-25 16:44:57 +0000
commit9617614b04b7e2981ebff5074b55778381ca8b20 (patch)
treeed8629cbd76a9334fd657971f55ef5cb63c9915f /tile.c
parent2b73dec56791a1aa3b2e3c333ae2d4673a7cfbfc (diff)
downloadopenttd-9617614b04b7e2981ebff5074b55778381ca8b20.tar.xz
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tile.c b/tile.c
index cc54d1374..db220d41e 100644
--- a/tile.c
+++ b/tile.c
@@ -31,11 +31,11 @@ uint GetTileSlope(TileIndex tile, uint *h)
}
min = a = TileHeight(tile);
- b = TileHeight(tile + TILE_XY(1,0));
+ b = TileHeight(tile + TileDiffXY(1, 0));
if (min >= b) min = b;
- c = TileHeight(tile + TILE_XY(0,1));
+ c = TileHeight(tile + TileDiffXY(0, 1));
if (min >= c) min = c;
- d = TileHeight(tile + TILE_XY(1,1));
+ d = TileHeight(tile + TileDiffXY(1, 1));
if (min >= d) min = d;
r = 0;