1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Reduce direct ride type checking; move available piece lookup to RTD (#11353)

This commit is contained in:
Michael Steenbeek
2020-04-19 13:32:43 +02:00
committed by GitHub
parent d17b4606f3
commit 8127437de1
12 changed files with 42 additions and 41 deletions

View File

@@ -2260,5 +2260,5 @@ bool PathElement::IsLevelCrossing(const CoordsXY& coords) const
return false;
}
return (ride->type == RIDE_TYPE_MINIATURE_RAILWAY);
return RideTypeDescriptors[ride->type].HasFlag(RIDE_TYPE_FLAG_SUPPORTS_LEVEL_CROSSINGS);
}