(svn r8778) -Fix
authortron
Sat, 17 Feb 2007 14:54:31 +0000
changeset 6048 01a2ed479bf0
parent 6047 8c4ef3aa6af8
child 6049 687015af5ef8
(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
--- a/src/order_cmd.cpp	Sat Feb 17 13:50:22 2007 +0000
+++ b/src/order_cmd.cpp	Sat Feb 17 14:54:31 2007 +0000
@@ -198,7 +198,7 @@
 			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;
 			}