mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-21 01:59:44 +00:00
Fix: Depot listing for trains arriving backwards with an articulated tail (#15547)
This commit is contained in:
committed by
GitHub
parent
792f6d99a3
commit
a4e1865cd7
+1
-2
@@ -50,9 +50,8 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine
|
||||
|
||||
if (type == VehicleType::Train) {
|
||||
const Train *t = Train::From(v);
|
||||
if (t->IsArticulatedPart()) continue;
|
||||
if (wagons != nullptr && t->First()->IsFreeWagon()) {
|
||||
if (individual_wagons || t->IsFreeWagon()) wagons->push_back(t);
|
||||
if (!t->IsArticulatedPart() && (individual_wagons || t->IsFreeWagon())) wagons->push_back(t);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user