train_cmd.c
changeset 2833 0d394d4365fe
parent 2830 873da5589c15
child 2840 d68a605b2087
--- a/train_cmd.c	Sat Jan 07 10:15:46 2006 +0000
+++ b/train_cmd.c	Sat Jan 07 10:57:32 2006 +0000
@@ -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);
 		}