summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-16 07:32:22 +0000
committertron <tron@openttd.org>2007-02-16 07:32:22 +0000
commit2bd7e648500e74e47094e4b3c03f752a8ce15eb1 (patch)
tree57d4873cfe8aa9c09bb98bd0f52b846d7fe0523a /src/order_cmd.cpp
parent8a466c2e2f5ae3a293e54ddd40d07e4dd83e6433 (diff)
downloadopenttd-2bd7e648500e74e47094e4b3c03f752a8ce15eb1.tar.xz
(svn r8754) -Fix
Do not handle a special case for goto hangar orders to oilrigs - they do not have a hangar anyway
Diffstat (limited to 'src/order_cmd.cpp')
-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 afe7095ed..bb2a97db7 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -259,7 +259,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 && !CheckOwnership(st->owner)) ||
+ if (!CheckOwnership(st->owner) ||
!(st->facilities & FACIL_AIRPORT) ||
GetAirport(st->airport_type)->nof_depots == 0) {
return CMD_ERROR;