# HG changeset patch # User truelight # Date 2006-01-07 10:57:32 # Node ID 35ddad9f0bb4093b8f99056a7e600fe59e453625 # Parent 5e6ba1cf8b9e530c8f8dc705f92a58eec37e6a5c (svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -1005,7 +1005,9 @@ int32 CmdMoveRailVehicle(int x, int y, u 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); }