Fix VRF_BEYOND_PLATFORM_END not being cleared when switching order

This commit is contained in:
Jonathan G Rennison
2022-01-03 12:47:44 +00:00
parent e993afcd99
commit 30817c3915
4 changed files with 21 additions and 0 deletions

View File

@@ -4072,6 +4072,10 @@ static VehicleEnterTileStatus VehicleEnter_Track(Vehicle *u, TileIndex tile, int
if (order != nullptr && order->IsType(OT_GOTO_STATION) && order->GetDestination() == v->last_station_visited) {
v->IncrementImplicitOrderIndex();
}
} else {
for (Train *u = v; u != nullptr; u = u->Next()) {
ClrBit(u->flags, VRF_BEYOND_PLATFORM_END);
}
}
};