(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
1 changed files with 1 additions and 1 deletions

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