summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-10 16:45:32 +0000
committerrubidium <rubidium@openttd.org>2010-08-10 16:45:32 +0000
commitcde8a44a114698b854f516634d5445ebefca045d (patch)
tree71bf3dfd3904f47b1393a7b5bf4f6fc39a43157f
parent10ced06205de420fb1796a0e126136c0fe92f61f (diff)
downloadopenttd-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.
-rw-r--r--src/order_cmd.cpp2
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());