changeset 2833:a587f8549880 draft

(svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train
author truelight <truelight@openttd.org>
date Sat, 07 Jan 2006 10:57:32 +0000
parents c3a70c191b55
children a63e48428ae4
files train_cmd.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1005,7 +1005,9 @@
 			r = CheckTrainStoppedInDepot(dst_head);
 			if (r < 0) return CMD_ERROR;
 
-			num += r;
+			/* If we move in the same vehicle, it is okay */
+			if (dst_head != src_head)
+				num += r;
 
 			assert(dst_head->tile == src_head->tile);
 		}