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
commita4fd962adfcaddb609f83e48e35ceef3984db9dc (patch)
treea40e630472fb6944d1c1de72fd0c1a6bad3ea3f2
parent0b65ce9d46ca9393a4565b0a5298f7f16a650238 (diff)
downloadopenttd-a4fd962adfcaddb609f83e48e35ceef3984db9dc.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 ..<..<..>..<..>..>..