From ab74800b8e8a26d49f97cc760432ddd82e79953e Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Thu, 27 May 2021 18:56:39 +0200 Subject: [PATCH] Change: by default, make "unload all" leave stations empty (#9301) (cherry picked from commit 76484833643c1aff90d41eb01de70f7e8ba0ceb9) --- src/order_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index e873deee3e..c8c446df81 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1457,8 +1457,8 @@ private: this->ModifyOrder(sel_ord, MOF_UNLOAD | (unload_type << 4)); } - if (unload_type == OUFB_TRANSFER) { - /* Transfer orders with leave empty as default */ + if (unload_type == OUFB_TRANSFER || unload_type == OUFB_UNLOAD) { + /* Transfer and unload orders with leave empty as default */ this->ModifyOrder(sel_ord, MOF_LOAD | (OLFB_NO_LOAD << 4), false); this->SetWidgetDirty(WID_O_FULL_LOAD); } else if (unload_type == OUFB_CARGO_TYPE_UNLOAD) {