summaryrefslogtreecommitdiff
path: root/dock_gui.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
commitbec5e4fb4cc475596e1f22db9232e2bd9a190d89 (patch)
treeed8629cbd76a9334fd657971f55ef5cb63c9915f /dock_gui.c
parent61f6f07edd837728d72e83daa0a4b8893ec77307 (diff)
downloadopenttd-bec5e4fb4cc475596e1f22db9232e2bd9a190d89.tar.xz
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dock_gui.c b/dock_gui.c
index 2fcd7a890..d5b8b691e 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -168,11 +168,11 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e)
TileIndex tile_to;
tile_from = tile_to = e->place.tile;
- switch(GetTileSlope(tile_from, NULL)) {
- case 3: tile_to += TILE_XY(-1,0); break;
- case 6: tile_to += TILE_XY(0,-1); break;
- case 9: tile_to += TILE_XY(0,1); break;
- case 12:tile_to += TILE_XY(1,0); break;
+ switch (GetTileSlope(tile_from, NULL)) {
+ case 3: tile_to += TileDiffXY(-1, 0); break;
+ case 6: tile_to += TileDiffXY( 0, -1); break;
+ case 9: tile_to += TileDiffXY( 0, 1); break;
+ case 12: tile_to += TileDiffXY( 1, 0); break;
}
VpSetPresizeRange(tile_from, tile_to);
} break;