summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-19 21:03:16 +0000
committertron <tron@openttd.org>2004-12-19 21:03:16 +0000
commit7182b2508d4a43da8ab51e3c3cab7f03b08a11e5 (patch)
treeba13f833d2739b70767ad7b2c2a24a6b818041b3 /order_cmd.c
parent0807891501915ddeefca63efce1fb8552242d954 (diff)
downloadopenttd-7182b2508d4a43da8ab51e3c3cab7f03b08a11e5.tar.xz
(svn r1177) Enable non-stop flag for waypoints
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 2ce7da4d6..4627dc679 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -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) {