(svn r8754) -Fix
authortron
Fri, 16 Feb 2007 07:32:22 +0000
changeset 6031 df88262a064a
parent 6030 0415afaa9ac1
child 6032 fe6a454ac1ba
(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
--- a/src/order_cmd.cpp	Fri Feb 16 01:35:18 2007 +0000
+++ b/src/order_cmd.cpp	Fri Feb 16 07:32:22 2007 +0000
@@ -259,7 +259,7 @@
 				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;