Mercurial > hg > openttd
changeset 6048:8ea5a4436c44 draft
(svn r8778) -Fix
-Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now)
author | tron <tron@openttd.org> |
---|---|
date | Sat, 17 Feb 2007 14:54:31 +0000 |
parents | 5a275eda5f1e |
children | 9b864f918735 |
files | src/order_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -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; }