mirror of https://github.com/OpenTTD/OpenTTD
(svn r24457) -Fix [FS#5264] (r23087): Changing auto-refit for a 'goto station' order was inadvertently modifying the full load state.
parent
3181544729
commit
bfbf74fe7d
|
@ -1617,7 +1617,7 @@ CommandCost CmdOrderRefit(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||||
order->SetRefit(cargo, subtype);
|
order->SetRefit(cargo, subtype);
|
||||||
|
|
||||||
/* Make the depot order an 'always go' order. */
|
/* 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->SetDepotOrderType((OrderDepotTypeFlags)(order->GetDepotOrderType() & ~ODTFB_SERVICE));
|
||||||
order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_HALT));
|
order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() & ~ODATFB_HALT));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue