diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp index 8e75b0417b..8568777222 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp @@ -1865,7 +1865,7 @@ void junior_rc_paint_track_flat( void junior_rc_paint_station( paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, uint16_t height, - const TrackElement& trackElement, uint8_t rideType) + const TrackElement& trackElement, bool drawBlockBrake) { uint32_t imageId; @@ -1878,7 +1878,7 @@ void junior_rc_paint_station( PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 32, 28, 1 }, { 0, 2, height }); // height += 2 (height) - if (trackElement.GetTrackType() == TrackElemType::EndStation && rideType == RIDE_TYPE_JUNIOR_ROLLER_COASTER) + if (trackElement.GetTrackType() == TrackElemType::EndStation && drawBlockBrake) { imageId = junior_rc_track_pieces_block_brake[isBraked][direction] | session.TrackColours[SCHEME_TRACK]; } @@ -1900,7 +1900,7 @@ void junior_rc_paint_station( PaintAddImageAsParent(session, imageId, { 0, 0, height - 2 }, { 28, 32, 1 }, { 2, 0, height }); // height += 2 (height) - if (trackElement.GetTrackType() == TrackElemType::EndStation && rideType == RIDE_TYPE_JUNIOR_ROLLER_COASTER) + if (trackElement.GetTrackType() == TrackElemType::EndStation && drawBlockBrake) { imageId = junior_rc_track_pieces_block_brake[isBraked][direction] | session.TrackColours[SCHEME_TRACK]; } @@ -5803,7 +5803,7 @@ static void paint_junior_rc_station_track( paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - junior_rc_paint_station(session, ride, trackSequence, direction, height, trackElement, RIDE_TYPE_JUNIOR_ROLLER_COASTER); + junior_rc_paint_station(session, ride, trackSequence, direction, height, trackElement, true); } /* rct2: 0x0051881E */ diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.h b/src/openrct2/ride/coaster/JuniorRollerCoaster.h index 12187afc8c..de3cd54dab 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.h +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.h @@ -24,7 +24,7 @@ struct TrackElement; void junior_rc_paint_station( paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, - const TrackElement& trackElement, uint8_t rideType); + const TrackElement& trackElement, bool drawBlockBrake); void junior_rc_paint_track_flat( paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, diff --git a/src/openrct2/ride/water/WaterCoaster.cpp b/src/openrct2/ride/water/WaterCoaster.cpp index ae334fcde9..b20d11bd68 100644 --- a/src/openrct2/ride/water/WaterCoaster.cpp +++ b/src/openrct2/ride/water/WaterCoaster.cpp @@ -148,7 +148,7 @@ static void water_rc_track_station( paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - junior_rc_paint_station(session, ride, trackSequence, direction, height, trackElement, RIDE_TYPE_WATER_COASTER); + junior_rc_paint_station(session, ride, trackSequence, direction, height, trackElement, false); } static void water_rc_track_60_deg_up(