mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r12641) -Codechange: do not use the same button for two completely distinct tasks, just make an extra button for it and hide them when not needed.
This commit is contained in:
@@ -797,7 +797,7 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
order->SetUnloadType((OrderUnloadFlags)data);
|
||||
/* Full loading gets disabled when un loading! */
|
||||
if ((data & OUFB_UNLOAD) != 0) {
|
||||
order->SetLoadType((OrderLoadFlags)(order->GetLoadType() & ~OLFB_FULL_LOAD));
|
||||
order->SetLoadType((OrderLoadFlags)(order->GetLoadType() & ~(OLFB_FULL_LOAD | OLF_FULL_LOAD_ANY)));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user