mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +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)) {
|
||||
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…
Reference in New Issue
Block a user