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:
committed by
GitHub
parent
d17b4606f3
commit
8127437de1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user