1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-03 03:49:12 +00:00

(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.

This commit is contained in:
frosch
2008-09-20 18:31:31 +00:00
parent c125cfa6cc
commit 3dceffd283

View File

@@ -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 ..<..<..>..<..>..>..