summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2010-10-15 18:15:01 +0000
committerplanetmaker <planetmaker@openttd.org>2010-10-15 18:15:01 +0000
commit31e7dd7e6c841464230815ebffbba29459259b89 (patch)
treea451917577855f440192ae2d6b10dd307ee12e4d
parent7b49c4e44209a63156f0c061fe58d6c06745204d (diff)
downloadopenttd-31e7dd7e6c841464230815ebffbba29459259b89.tar.xz
(svn r20927) -Add [FS#3905]: Transfer orders imply 'leave empty' by default
-rw-r--r--src/order_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 1c8fa2842..1fb52dc80 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -596,6 +596,12 @@ private:
}
DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 20), MOF_UNLOAD | (unload_type << 4), CMD_MODIFY_ORDER | CMD_MSG(STR_ERROR_CAN_T_MODIFY_THIS_ORDER));
+
+ /* Transfer orders with leave empty as default */
+ if (unload_type == OUFB_TRANSFER) {
+ DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 20), MOF_LOAD | (OLFB_NO_LOAD << 4), CMD_MODIFY_ORDER);
+ this->SetWidgetDirty(ORDER_WIDGET_FULL_LOAD);
+ }
}
/**