# HG changeset patch # User truelight # Date 1136631452 0 # Node ID 0d394d4365fe54397f254011261de3411c52b4e0 # Parent acf08469a0c6dcf88f1739306e78027a69fa73d4 (svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train diff -r acf08469a0c6 -r 0d394d4365fe train_cmd.c --- 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); }