From 3dceffd2837a1f0c529ae3ae4fbe9e50dfcf4ed4 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 20 Sep 2008 18:31:31 +0000 Subject: (svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 18881c719..a4994f3ec 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -4434,7 +4434,7 @@ void ConnectMultiheadedTrains() } FOR_ALL_VEHICLES(v) { - if (v->type == VEH_TRAIN) { + if (v->type == VEH_TRAIN && (IsFrontEngine(v) || IsFreeWagon(v))) { /* Two ways to associate multiheaded parts to each other: * sequential-matching: Trains shall be arranged to look like <..>..<..>..<..>.. * bracket-matching: Free vehicle chains shall be arranged to look like ..<..<..>..<..>..>.. -- cgit v1.2.3-70-g09d2