mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-07 06:39:08 +00:00
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
This commit is contained in:
parent
ac389e16d2
commit
77dca1f023
@ -767,7 +767,7 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
if (order->IsType(OT_GOTO_DEPOT)) {
|
if (order->IsType(OT_GOTO_DEPOT)) {
|
||||||
order->SetDepotOrderType(order->GetDepotOrderType() ^ OFB_SERVICE_IF_NEEDED);
|
order->SetDepotOrderType(order->GetDepotOrderType() ^ OFB_SERVICE_IF_NEEDED);
|
||||||
} else {
|
} else {
|
||||||
order->SetLoadType(order->GetUnloadType() ^ OFB_FULL_LOAD);
|
order->SetLoadType(order->GetLoadType() ^ OFB_FULL_LOAD);
|
||||||
order->SetUnloadType(order->GetUnloadType() & ~OFB_UNLOAD);
|
order->SetUnloadType(order->GetUnloadType() & ~OFB_UNLOAD);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user