summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-09-20 18:31:31 +0000
committerfrosch <frosch@openttd.org>2008-09-20 18:31:31 +0000
commit3dceffd2837a1f0c529ae3ae4fbe9e50dfcf4ed4 (patch)
treea40e630472fb6944d1c1de72fd0c1a6bad3ea3f2
parentc125cfa6cc3fc45a1ad6cb4d7a5e64ce5f66cfce (diff)
downloadopenttd-3dceffd2837a1f0c529ae3ae4fbe9e50dfcf4ed4.tar.xz
(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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 ..<..<..>..<..>..>..