diff options
author | rubidium <rubidium@openttd.org> | 2010-08-10 16:45:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-10 16:45:32 +0000 |
commit | cde8a44a114698b854f516634d5445ebefca045d (patch) | |
tree | 71bf3dfd3904f47b1393a7b5bf4f6fc39a43157f /src | |
parent | 10ced06205de420fb1796a0e126136c0fe92f61f (diff) | |
download | openttd-cde8a44a114698b854f516634d5445ebefca045d.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index d91f5d375..2003ce255 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -525,7 +525,7 @@ CommandCost CmdInsertOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } 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()); |