mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
This commit is contained in:
parent
96700d5605
commit
85e5053b68
|
@ -382,6 +382,8 @@ CommandCost CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
* [non-stop]
|
* [non-stop]
|
||||||
* non-stop orders (if any) are only valid for trains */
|
* non-stop orders (if any) are only valid for trains */
|
||||||
if (new_order.GetNonStopType() != ONSF_STOP_EVERYWHERE && v->type != VEH_TRAIN) return CMD_ERROR;
|
if (new_order.GetNonStopType() != ONSF_STOP_EVERYWHERE && v->type != VEH_TRAIN) return CMD_ERROR;
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default: return CMD_ERROR;
|
default: return CMD_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue