Change: by default, make "unload all" leave stations empty (#9301)
(cherry picked from commit 7648483364
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
da8d18d052
commit
ab74800b8e
@@ -1457,8 +1457,8 @@ private:
|
|||||||
this->ModifyOrder(sel_ord, MOF_UNLOAD | (unload_type << 4));
|
this->ModifyOrder(sel_ord, MOF_UNLOAD | (unload_type << 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unload_type == OUFB_TRANSFER) {
|
if (unload_type == OUFB_TRANSFER || unload_type == OUFB_UNLOAD) {
|
||||||
/* Transfer orders with leave empty as default */
|
/* Transfer and unload orders with leave empty as default */
|
||||||
this->ModifyOrder(sel_ord, MOF_LOAD | (OLFB_NO_LOAD << 4), false);
|
this->ModifyOrder(sel_ord, MOF_LOAD | (OLFB_NO_LOAD << 4), false);
|
||||||
this->SetWidgetDirty(WID_O_FULL_LOAD);
|
this->SetWidgetDirty(WID_O_FULL_LOAD);
|
||||||
} else if (unload_type == OUFB_CARGO_TYPE_UNLOAD) {
|
} else if (unload_type == OUFB_CARGO_TYPE_UNLOAD) {
|
||||||
|
Reference in New Issue
Block a user