mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Merge pull request #15414 from frutiemax/develop
#15367: Encode RideType in TrackElement
This commit is contained in:
@@ -2277,7 +2277,9 @@ void PaintTrack(paint_session* session, Direction direction, int32_t height, con
|
||||
{
|
||||
return;
|
||||
}
|
||||
TRACK_PAINT_FUNCTION_GETTER paintFunctionGetter = ride->GetRideTypeDescriptor().TrackPaintFunction;
|
||||
|
||||
const auto& rtd = GetRideTypeDescriptor(trackElement.GetRideType());
|
||||
TRACK_PAINT_FUNCTION_GETTER paintFunctionGetter = rtd.TrackPaintFunction;
|
||||
if (paintFunctionGetter != nullptr)
|
||||
{
|
||||
TRACK_PAINT_FUNCTION paintFunction = paintFunctionGetter(trackType);
|
||||
|
||||
Reference in New Issue
Block a user