Changeset - r28729:5311071f6e67
[Not reviewed]
master
0 1 0
Tyler Trahan - 3 months ago 2024-02-06 22:21:12
tyler@tylertrahan.com
Fix #12020: Unbunch and service if needed should be mutually exclusive depot order types
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_cmd.cpp
Show inline comments
 
@@ -1389,13 +1389,14 @@ CommandCost CmdModifyOrder(DoCommandFlag
 
					case DA_SERVICE:
 
						order->SetDepotOrderType((OrderDepotTypeFlags)(order->GetDepotOrderType() | ODTFB_SERVICE));
 
						order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_HALT));
 
						order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_UNBUNCH));
 
						order->SetRefit(CARGO_NO_REFIT);
 
						break;
 

	
 
					case DA_STOP:
 
						order->SetDepotOrderType((OrderDepotTypeFlags)(order->GetDepotOrderType() & ~ODTFB_SERVICE));
 
						order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() | ODATFB_HALT));
 
						order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_UNBUNCH));
 
						order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() | ODATFB_HALT));
 
						order->SetRefit(CARGO_NO_REFIT);
 
						break;
 

	
0 comments (0 inline, 0 general)