diff options
author | tron <tron@openttd.org> | 2005-06-25 16:44:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-25 16:44:57 +0000 |
commit | bec5e4fb4cc475596e1f22db9232e2bd9a190d89 (patch) | |
tree | ed8629cbd76a9334fd657971f55ef5cb63c9915f /dock_gui.c | |
parent | 61f6f07edd837728d72e83daa0a4b8893ec77307 (diff) | |
download | openttd-bec5e4fb4cc475596e1f22db9232e2bd9a190d89.tar.xz |
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 10 |
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; |