Changeset - r19528:aaa5a65470fe
[Not reviewed]
master
0 1 0
michi_cc - 12 years ago 2012-08-03 14:15:52
michi_cc@openttd.org
(svn r24457) -Fix [FS#5264] (r23087): Changing auto-refit for a 'goto station' order was inadvertently modifying the full load state.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_cmd.cpp
Show inline comments
 
@@ -1617,7 +1617,7 @@ CommandCost CmdOrderRefit(TileIndex tile
 
		order->SetRefit(cargo, subtype);
 

	
 
		/* Make the depot order an 'always go' order. */
 
		if (cargo != CT_NO_REFIT) {
 
		if (cargo != CT_NO_REFIT && order->IsType(OT_GOTO_DEPOT)) {
 
			order->SetDepotOrderType((OrderDepotTypeFlags)(order->GetDepotOrderType() & ~ODTFB_SERVICE));
 
			order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_HALT));
 
		}
0 comments (0 inline, 0 general)