Changeset - r25544:e24051a42877
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-05-27 16:56:39
truebrain@openttd.org
Change: by default, make "unload all" leave stations empty (#9301)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -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);
 
		}
0 comments (0 inline, 0 general)