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
commitfbd83baff61e6664adc8070a771b9119d0ff3cab (patch)
tree10ba1320cca8d83376df8ec6b9b4df5a91f6a248 /src
parent2841e946af5d41bd43c1958ea313939a55a1ac00 (diff)
downloadopenttd-fbd83baff61e6664adc8070a771b9119d0ff3cab.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;
}