From 859578b8d880ecbc092d0cdeae9cb472c7cbb9fe Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:23:14 +0100 Subject: [PATCH] Explicitly use twister quarter loop function for inverted flying coaster --- .../paint/track/coaster/FlyingRollerCoasterInverted.cpp | 3 +++ src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp | 2 +- src/openrct2/paint/track/coaster/TwisterRollerCoaster.h | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index 575e421acd..ba286101b3 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -8,6 +8,7 @@ *****************************************************************************/ #include "../../../SpriteIds.h" +#include "../../../paint/track/coaster/TwisterRollerCoaster.h" #include "../../../ride/TrackPaint.h" #include "../../../ride/ted/TrackElemType.h" #include "../../../world/tile_element/TrackElement.h" @@ -9000,6 +9001,8 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRCInverted(TrackElemType trackType return InvertedFlyingRCTrackRightFlyerTwistDown; case TrackElemType::flyerHalfLoopInvertedDown: return FlyingRCTrackFlyerHalfLoopDown; + case TrackElemType::multiDimInvertedFlatToDown90QuarterLoop: + return TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown; // OpenRCT2-specific paint code case TrackElemType::booster: return InvertedFlyingRCTrackBooster; diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index d319e3cb71..32f2e8cf0c 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -13144,7 +13144,7 @@ void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( } } -static void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( +void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h index 4ef996306e..a35c60232a 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h @@ -50,3 +50,6 @@ void TwisterRCTrackRightLargeHalfLoopDown( void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const OpenRCT2::TrackElement& trackElement, SupportType supportType); +void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( + PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType);