mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r18462) -Fix: when moving a wagon and only the last part of a dual headed engine you could split the dual headed engine over two vehicles.
This commit is contained in:
parent
db4e547e24
commit
b8a7efc450
@ -1069,10 +1069,6 @@ static void AddWagonToConsist(Train *v, Train *dest)
|
|||||||
*/
|
*/
|
||||||
static void NormaliseTrainConsist(Train *v)
|
static void NormaliseTrainConsist(Train *v)
|
||||||
{
|
{
|
||||||
if (v->IsFreeWagon()) return;
|
|
||||||
|
|
||||||
assert(v->IsFrontEngine());
|
|
||||||
|
|
||||||
for (; v != NULL; v = v->GetNextVehicle()) {
|
for (; v != NULL; v = v->GetNextVehicle()) {
|
||||||
if (!v->IsMultiheaded() || !v->IsEngine()) continue;
|
if (!v->IsMultiheaded() || !v->IsEngine()) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user