From 3c5c64f726927e18afc474069ae0dfea06d5e3b2 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 17 Feb 2007 14:54:31 +0000 Subject: (svn r8778) -Fix -Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now) --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 20dbf4220..6bed252b6 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -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; } -- cgit v1.2.3-54-g00ecf