(svn r8754) -Fix

Do not handle a special case for goto hangar orders to oilrigs - they do not have a hangar anyway
This commit is contained in:
tron 2007-02-16 07:32:22 +00:00
parent 4d988c3506
commit 6c17cd4c46
1 changed files with 1 additions and 1 deletions

View File

@ -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;