summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-05-27 18:56:39 +0200
committerGitHub <noreply@github.com>2021-05-27 18:56:39 +0200
commit76484833643c1aff90d41eb01de70f7e8ba0ceb9 (patch)
tree0ac22c76123af26454aacb5bcff7eafc3bd35d14 /src
parent8372c679e3c16f776ecd0847b60c940ac066ed4c (diff)
downloadopenttd-76484833643c1aff90d41eb01de70f7e8ba0ceb9.tar.xz
Change: by default, make "unload all" leave stations empty (#9301)
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 8504ee16f..2b3715ebd 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -643,8 +643,8 @@ 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) {
+ /* Transfer and unload orders with leave empty as default */
+ if (unload_type == OUFB_TRANSFER || unload_type == OUFB_UNLOAD) {
DoCommandP(this->vehicle->tile, this->vehicle->index + (sel_ord << 20), MOF_LOAD | (OLFB_NO_LOAD << 4), CMD_MODIFY_ORDER);
this->SetWidgetDirty(WID_O_FULL_LOAD);
}