(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 17 years ago
parent ac389e16d2
commit 77dca1f023

@ -767,7 +767,7 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (order->IsType(OT_GOTO_DEPOT)) {
order->SetDepotOrderType(order->GetDepotOrderType() ^ OFB_SERVICE_IF_NEEDED);
} else {
order->SetLoadType(order->GetUnloadType() ^ OFB_FULL_LOAD);
order->SetLoadType(order->GetLoadType() ^ OFB_FULL_LOAD);
order->SetUnloadType(order->GetUnloadType() & ~OFB_UNLOAD);
}
break;

Loading…
Cancel
Save