summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-18 08:50:27 +0000
committertron <tron@openttd.org>2007-02-18 08:50:27 +0000
commit46c872b3666ff8a030c9c8c02e992d1e35899d10 (patch)
tree09cae1550826296f624f10cdc902c63278b8b0f5
parentc6743c5e114eadce5f88c95c261ad7a11e9d94ad (diff)
downloadopenttd-46c872b3666ff8a030c9c8c02e992d1e35899d10.tar.xz
(svn r8795) -Fix
Remove the explicit check for buoys when inserting goto station orders. This is already covered by the preceding OWNER_NONE test.
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 6bed252b6..7949c9efc 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -198,7 +198,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
st = GetStation(new_order.dest);
- if (st->owner != OWNER_NONE && !st->IsBuoy() && !CheckOwnership(st->owner)) {
+ if (st->owner != OWNER_NONE && !CheckOwnership(st->owner)) {
return CMD_ERROR;
}