mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
This commit is contained in:
parent
c125cfa6cc
commit
3dceffd283
|
@ -4434,7 +4434,7 @@ void ConnectMultiheadedTrains()
|
||||||
}
|
}
|
||||||
|
|
||||||
FOR_ALL_VEHICLES(v) {
|
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:
|
/* Two ways to associate multiheaded parts to each other:
|
||||||
* sequential-matching: Trains shall be arranged to look like <..>..<..>..<..>..
|
* sequential-matching: Trains shall be arranged to look like <..>..<..>..<..>..
|
||||||
* bracket-matching: Free vehicle chains shall be arranged to look like ..<..<..>..<..>..>..
|
* bracket-matching: Free vehicle chains shall be arranged to look like ..<..<..>..<..>..>..
|
||||||
|
|
Loading…
Reference in New Issue