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 /order_gui.c | |
parent | 61f6f07edd837728d72e83daa0a4b8893ec77307 (diff) | |
download | openttd-bec5e4fb4cc475596e1f22db9232e2bd9a190d89.tar.xz |
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/order_gui.c b/order_gui.c index a3c6ee2fe..8f960ce64 100644 --- a/order_gui.c +++ b/order_gui.c @@ -227,8 +227,8 @@ static Order GetOrderCmdFromTile(Vehicle *v, TileIndex tile) if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) { switch (_map5[tile]) { - case 0x81: tile--; break; - case 0x83: tile-= TILE_XY(0,1); break; + case 0x81: tile -= TileDiffXY(1, 0); break; + case 0x83: tile -= TileDiffXY(0, 1); break; } order.type = OT_GOTO_DEPOT; order.flags = OF_PART_OF_ORDERS; |