Mercurial > hg > openttd
changeset 15767:293a91934c7d draft
(svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 10 Aug 2010 16:45:32 +0000 |
parents | d17efe64f4ca |
children | 4559798876dc |
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 @@ -525,7 +525,7 @@ } case OT_GOTO_DEPOT: { - if (new_order.GetDepotActionType() != ODATFB_NEAREST_DEPOT) { + if ((new_order.GetDepotActionType() & ODATFB_NEAREST_DEPOT) == 0) { if (v->type == VEH_AIRCRAFT) { const Station *st = Station::GetIfValid(new_order.GetDestination());