From 6c17cd4c464799c3a83da3a677c8002fc26f7d9d Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 16 Feb 2007 07:32:22 +0000 Subject: [PATCH] (svn r8754) -Fix Do not handle a special case for goto hangar orders to oilrigs - they do not have a hangar anyway --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index afe7095edd..bb2a97db74 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;