mirror of https://github.com/OpenTTD/OpenTTD
(svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail.
parent
10ced06205
commit
cde8a44a11
|
@ -525,7 +525,7 @@ CommandCost CmdInsertOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
|||
}
|
||||
|
||||
case OT_GOTO_DEPOT: {
|
||||
if (new_order.GetDepotActionType() != ODATFB_NEAREST_DEPOT) {
|
||||
if ((new_order.GetDepotActionType() & ODATFB_NEAREST_DEPOT) == 0) {
|
||||
if (v->type == VEH_AIRCRAFT) {
|
||||
const Station *st = Station::GetIfValid(new_order.GetDestination());
|
||||
|
||||
|
|
Loading…
Reference in New Issue