mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r8795) -Fix
Remove the explicit check for buoys when inserting goto station orders. This is already covered by the preceding OWNER_NONE test.
This commit is contained in:
parent
25a3485e71
commit
186fb6617d
@ -198,7 +198,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
|
if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
|
||||||
st = GetStation(new_order.dest);
|
st = GetStation(new_order.dest);
|
||||||
|
|
||||||
if (st->owner != OWNER_NONE && !st->IsBuoy() && !CheckOwnership(st->owner)) {
|
if (st->owner != OWNER_NONE && !CheckOwnership(st->owner)) {
|
||||||
return CMD_ERROR;
|
return CMD_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user