summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-17 14:54:31 +0000
committertron <tron@openttd.org>2007-02-17 14:54:31 +0000
commit3c5c64f726927e18afc474069ae0dfea06d5e3b2 (patch)
tree10ba1320cca8d83376df8ec6b9b4df5a91f6a248 /src
parent790a3f5d5e6cb6987361518b3d7dd15449702270 (diff)
downloadopenttd-3c5c64f726927e18afc474069ae0dfea06d5e3b2.tar.xz
(svn r8778) -Fix
-Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now)
Diffstat (limited to 'src')
-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 20dbf4220..6bed252b6 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->airport_type != AT_OILRIG && !st->IsBuoy() && !CheckOwnership(st->owner)) {
+ if (st->owner != OWNER_NONE && !st->IsBuoy() && !CheckOwnership(st->owner)) {
return CMD_ERROR;
}