mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(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:
parent
4d988c3506
commit
6c17cd4c46
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user