(svn r2487) Replace TILE_XY by TileXY/TileDiffXY

This commit is contained in:
tron
2005-06-25 16:44:57 +00:00
parent 61f6f07edd
commit bec5e4fb4c
30 changed files with 240 additions and 229 deletions

6
tile.c
View File

@@ -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;