diff src/train_cmd.cpp @ 10173:513fed326ea2 draft

(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
author frosch <frosch@openttd.org>
date Sat, 20 Sep 2008 18:31:31 +0000
parents 888c46c8f633
children 71daf486081d
line wrap: on
line diff
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -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 ..<..<..>..<..>..>..