summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-07 10:37:12 +0000
committertron <tron@openttd.org>2005-02-07 10:37:12 +0000
commitad837c2069d37ad36dfba07f62bd35a6694dd266 (patch)
tree62aa6f4ee1763a1b00c7e3f586968425a5f6064d
parent919852230713918b4edaec2d963faab876e2b87b (diff)
downloadopenttd-ad837c2069d37ad36dfba07f62bd35a6694dd266.tar.xz
(svn r1838) Ship depots are on water, not roads
-rw-r--r--order_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c
index 46be40278..b0d88d03e 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -194,7 +194,8 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile)
case MP_WATER:
if (v->type != VEH_Ship) break;
- if ( IsTileDepotType(tile, TRANSPORT_ROAD) && IsTileOwner(tile, _local_player)) {
+ if (IsTileDepotType(tile, TRANSPORT_WATER) &&
+ IsTileOwner(tile, _local_player)) {
switch (_map5[tile]) {
case 0x81: tile--; break;
case 0x83: tile-= TILE_XY(0,1); break;