(svn r8778) -Fix

-Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now)
This commit is contained in:
tron 2007-02-17 14:54:31 +00:00
parent 790a3f5d5e
commit 3c5c64f726

View File

@ -198,7 +198,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 && !st->IsBuoy() && !CheckOwnership(st->owner)) {
if (st->owner != OWNER_NONE && !st->IsBuoy() && !CheckOwnership(st->owner)) {
return CMD_ERROR;
}