Codechange: Store the rail type of rail engines as a RailTypes bitmask.

This commit is contained in:
Michael Lutz
2025-06-13 21:01:31 +02:00
committed by dP
parent fdc36e65fd
commit b16ba117cc
28 changed files with 185 additions and 88 deletions
+1 -1
View File
@@ -2837,7 +2837,7 @@ void Vehicle::ShowVisualEffect() const
IsDepotTile(v->tile) ||
IsTunnelTile(v->tile) ||
(v->type == VEH_TRAIN &&
!HasPowerOnRail(Train::From(v)->railtype, GetTileRailType(v->tile)))) {
!HasPowerOnRail(Train::From(v)->railtypes, GetTileRailType(v->tile)))) {
continue;
}