(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
--- a/src/train_cmd.cpp Sat Sep 20 17:43:06 2008 +0000
+++ b/src/train_cmd.cpp Sat Sep 20 18:31:31 2008 +0000
@@ -4434,7 +4434,7 @@
}
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 ..<..<..>..<..>..>..