(svn r1177) Enable non-stop flag for waypoints

This commit is contained in:
tron
2004-12-19 21:03:16 +00:00
parent 0807891501
commit 7182b2508d
3 changed files with 10 additions and 2 deletions

View File

@@ -177,7 +177,8 @@ int32 CmdModifyOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2)
sched = &v->schedule_ptr[sel];
if (sched->type != OT_GOTO_STATION &&
(sched->type != OT_GOTO_DEPOT || (p2 >> 8) == 1))
(sched->type != OT_GOTO_DEPOT || (p2 >> 8) == 1) &&
(sched->type != OT_GOTO_WAYPOINT || (p2 >> 8) != 2))
return CMD_ERROR;
if (flags & DC_EXEC) {