From 87e91e388b0d881b844999110e2ff4e1fd327e88 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 16 Aug 2024 23:21:04 +0200 Subject: [PATCH 1/6] Rename MetalSupportType to MetalSupportGraphic --- src/openrct2/paint/support/MetalSupports.cpp | 132 ++--- src/openrct2/paint/support/MetalSupports.h | 12 +- src/openrct2/paint/track/Support.h | 4 +- .../paint/track/coaster/AlpineCoaster.cpp | 270 ++++----- .../track/coaster/FlyingRollerCoaster.cpp | 2 +- .../track/coaster/HeartlineTwisterCoaster.cpp | 2 +- .../track/coaster/JuniorRollerCoaster.cpp | 159 +++--- .../track/coaster/LoopingRollerCoaster.cpp | 36 +- src/openrct2/paint/track/coaster/MineRide.cpp | 228 ++++---- .../paint/track/coaster/MineTrainCoaster.cpp | 2 +- .../paint/track/coaster/MiniRollerCoaster.cpp | 530 +++++++++--------- .../track/coaster/MiniSuspendedCoaster.cpp | 89 +-- .../paint/track/coaster/Steeplechase.cpp | 146 ++--- .../paint/track/coaster/WildMouse.cpp | 2 +- .../track/coaster/WoodenRollerCoaster.cpp | 40 +- .../paint/track/gentle/MiniHelicopters.cpp | 2 +- .../paint/track/gentle/MonorailCycles.cpp | 15 +- .../paint/track/thrill/MagicCarpet.cpp | 8 +- .../track/thrill/SwingingInverterShip.cpp | 8 +- .../paint/track/thrill/SwingingShip.cpp | 8 +- src/openrct2/ride/TrackPaint.cpp | 6 +- src/openrct2/ride/TrackPaint.h | 4 +- src/openrct2/ride/rtd/coaster/AlpineCoaster.h | 2 +- .../ride/rtd/coaster/BobsleighCoaster.h | 2 +- .../rtd/coaster/ClassicMiniRollerCoaster.h | 2 +- .../rtd/coaster/ClassicStandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/CompactInvertedCoaster.h | 2 +- .../ride/rtd/coaster/CorkscrewRollerCoaster.h | 2 +- .../ride/rtd/coaster/FlyingRollerCoaster.h | 4 +- src/openrct2/ride/rtd/coaster/GigaCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/HyperTwister.h | 2 +- src/openrct2/ride/rtd/coaster/Hypercoaster.h | 2 +- .../ride/rtd/coaster/InvertedHairpinCoaster.h | 2 +- .../ride/rtd/coaster/InvertedImpulseCoaster.h | 2 +- .../ride/rtd/coaster/InvertedRollerCoaster.h | 2 +- .../ride/rtd/coaster/JuniorRollerCoaster.h | 2 +- .../rtd/coaster/LIMLaunchedRollerCoaster.h | 2 +- .../ride/rtd/coaster/LayDownRollerCoaster.h | 4 +- .../ride/rtd/coaster/LoopingRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/MineRide.h | 2 +- .../ride/rtd/coaster/MiniRollerCoaster.h | 2 +- .../ride/rtd/coaster/MiniSuspendedCoaster.h | 2 +- .../rtd/coaster/MultiDimensionRollerCoaster.h | 4 +- .../rtd/coaster/SingleRailRollerCoaster.h | 2 +- .../ride/rtd/coaster/SpinningWildMouse.h | 2 +- .../ride/rtd/coaster/SpiralRollerCoaster.h | 2 +- .../ride/rtd/coaster/StandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/SteelWildMouse.h | 2 +- src/openrct2/ride/rtd/coaster/Steeplechase.h | 2 +- .../rtd/coaster/SuspendedSwingingCoaster.h | 2 +- .../ride/rtd/coaster/TwisterRollerCoaster.h | 2 +- .../ride/rtd/coaster/VerticalDropCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/WaterCoaster.h | 2 +- src/openrct2/ride/rtd/gentle/CarRide.h | 2 +- src/openrct2/ride/rtd/gentle/GhostTrain.h | 2 +- src/openrct2/ride/rtd/gentle/MiniGolf.h | 2 +- .../ride/rtd/gentle/MiniHelicopters.h | 2 +- src/openrct2/ride/rtd/gentle/MonorailCycles.h | 2 +- src/openrct2/ride/rtd/gentle/MonsterTrucks.h | 2 +- src/openrct2/ride/rtd/transport/Chairlift.h | 2 +- src/openrct2/ride/rtd/transport/Monorail.h | 2 +- .../ride/rtd/transport/SuspendedMonorail.h | 2 +- src/openrct2/ride/rtd/water/DinghySlide.h | 4 +- src/openrct2/ride/rtd/water/LogFlume.h | 2 +- src/openrct2/ride/rtd/water/SubmarineRide.h | 2 +- 65 files changed, 945 insertions(+), 854 deletions(-) diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index 0ada6ae3fd..84e979da40 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -104,36 +104,36 @@ static constexpr CoordsXY _97B062[] = { /** rct2: 0x0097B072 */ static constexpr uint32_t _metalSupportTypeToCrossbeamImages[][8] = { - { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Tubes - { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Fork - { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::ForkAlt - { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Boxed - { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Stick - { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::StickAlt - { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::ThickCentred - { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::Thick - { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAlt - { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAltCentred - { 3378, 3379, 3378, 3379, 3380, 3381, 3380, 3381 }, // MetalSupportType::Truss - { 3386, 3387, 3386, 3387, 3388, 3389, 3388, 3389 }, // MetalSupportType::TubesInverted - { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::BoxedCoated + { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportGraphic::Tubes + { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportGraphic::Fork + { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportGraphic::ForkAlt + { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportGraphic::Boxed + { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportGraphic::Stick + { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportGraphic::StickAlt + { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportGraphic::ThickCentred + { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportGraphic::Thick + { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportGraphic::ThickAlt + { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportGraphic::ThickAltCentred + { 3378, 3379, 3378, 3379, 3380, 3381, 3380, 3381 }, // MetalSupportGraphic::Truss + { 3386, 3387, 3386, 3387, 3388, 3389, 3388, 3389 }, // MetalSupportGraphic::TubesInverted + { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportGraphic::BoxedCoated }; /** rct2: 0x0097B142 */ static constexpr uint8_t supportTypeToHeight[] = { - 6, // MetalSupportType::Tubes - 3, // MetalSupportType::Fork - 3, // MetalSupportType::ForkAlt - 6, // MetalSupportType::Boxed - 3, // MetalSupportType::Stick - 3, // MetalSupportType::StickAlt - 6, // MetalSupportType::ThickCentred - 6, // MetalSupportType::Thick - 6, // MetalSupportType::ThickAlt - 6, // MetalSupportType::ThickAltCentred - 4, // MetalSupportType::Truss - 3, // MetalSupportType::TubesInverted - 6, // MetalSupportType::BoxedCoated + 6, // MetalSupportGraphic::Tubes + 3, // MetalSupportGraphic::Fork + 3, // MetalSupportGraphic::ForkAlt + 6, // MetalSupportGraphic::Boxed + 3, // MetalSupportGraphic::Stick + 3, // MetalSupportGraphic::StickAlt + 6, // MetalSupportGraphic::ThickCentred + 6, // MetalSupportGraphic::Thick + 6, // MetalSupportGraphic::ThickAlt + 6, // MetalSupportGraphic::ThickAltCentred + 4, // MetalSupportGraphic::Truss + 3, // MetalSupportGraphic::TubesInverted + 6, // MetalSupportGraphic::BoxedCoated }; struct MetalSupportsImages { @@ -144,19 +144,19 @@ struct MetalSupportsImages { /** rct2: 0x0097B15C, 0x0097B190 */ static constexpr MetalSupportsImages kSupportBasesAndBeams[] = { - { 3243, 3209, 3226 }, // MetalSupportType::Tubes - { 3279, 3262, 3262 }, // MetalSupportType::Fork - { 3298, 3262, 3262 }, // MetalSupportType::ForkAlt - { 3334, 3317, 3317 }, // MetalSupportType::Boxed - { 0, 3658, 3658 }, // MetalSupportType::Stick - { 0, 3658, 3658 }, // MetalSupportType::StickAlt - { 0, 3141, 3141 }, // MetalSupportType::ThickCentred - { 0, 3158, 3158 }, // MetalSupportType::Thick - { 0, 3175, 3175 }, // MetalSupportType::ThickAlt - { 0, 3192, 3192 }, // MetalSupportType::ThickAltCentred - { 0, 3124, 3124 }, // MetalSupportType::Truss - { 3243, 3209, 3226 }, // MetalSupportType::TubesInverted - { 3334, 3353, 3353 }, // MetalSupportType::BoxedCoated + { 3243, 3209, 3226 }, // MetalSupportGraphic::Tubes + { 3279, 3262, 3262 }, // MetalSupportGraphic::Fork + { 3298, 3262, 3262 }, // MetalSupportGraphic::ForkAlt + { 3334, 3317, 3317 }, // MetalSupportGraphic::Boxed + { 0, 3658, 3658 }, // MetalSupportGraphic::Stick + { 0, 3658, 3658 }, // MetalSupportGraphic::StickAlt + { 0, 3141, 3141 }, // MetalSupportGraphic::ThickCentred + { 0, 3158, 3158 }, // MetalSupportGraphic::Thick + { 0, 3175, 3175 }, // MetalSupportGraphic::ThickAlt + { 0, 3192, 3192 }, // MetalSupportGraphic::ThickAltCentred + { 0, 3124, 3124 }, // MetalSupportGraphic::Truss + { 3243, 3209, 3226 }, // MetalSupportGraphic::TubesInverted + { 3334, 3353, 3353 }, // MetalSupportGraphic::BoxedCoated }; /** rct2: 0x0097B404 */ @@ -216,23 +216,27 @@ static constexpr MetalSupportPlace kMetalSupportPlacementRotated[][kNumOrthogona MetalSupportPlace::TopRightSide }, }; -constexpr uint8_t MetalSupportTypeCount = 13; -constexpr MetalSupportType kMetalSupportTypeRotated[MetalSupportTypeCount][kNumOrthogonalDirections] = { - { MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes }, - { MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt }, - { MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork }, - { MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed }, - { MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt }, - { MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick }, - { MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt }, - { MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred }, - { MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick }, - { MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred }, - { MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss }, - { MetalSupportType::TubesInverted, MetalSupportType::TubesInverted, MetalSupportType::TubesInverted, - MetalSupportType::TubesInverted }, - { MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated, - MetalSupportType::BoxedCoated }, +constexpr uint8_t MetalSupportGraphicCount = 13; +constexpr MetalSupportGraphic kMetalSupportGraphicRotated[MetalSupportGraphicCount][kNumOrthogonalDirections] = { + { MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes }, + { MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt }, + { MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork }, + { MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed }, + { MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt }, + { MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick }, + { MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick, + MetalSupportGraphic::ThickAlt }, + { MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred, + MetalSupportGraphic::ThickAltCentred }, + { MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred, + MetalSupportGraphic::Thick }, + { MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, + MetalSupportGraphic::ThickCentred }, + { MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss }, + { MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, + MetalSupportGraphic::TubesInverted }, + { MetalSupportGraphic::BoxedCoated, MetalSupportGraphic::BoxedCoated, MetalSupportGraphic::BoxedCoated, + MetalSupportGraphic::BoxedCoated }, }; /** @@ -245,7 +249,7 @@ constexpr MetalSupportType kMetalSupportTypeRotated[MetalSupportTypeCount][kNumO * rct2: 0x00663105 */ bool MetalASupportsPaintSetup( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate) { if (!(session.Flags & PaintSessionFlags::PassedSurface)) @@ -430,10 +434,10 @@ bool MetalASupportsPaintSetup( } bool MetalASupportsPaintSetupRotated( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, Direction direction, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate) { - supportTypeMember = kMetalSupportTypeRotated[EnumValue(supportTypeMember)][direction]; + supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction]; placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction]; return MetalASupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate); } @@ -451,7 +455,7 @@ bool MetalASupportsPaintSetupRotated( * @return (Carry Flag) */ bool MetalBSupportsPaintSetup( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate) { if (!(session.Flags & PaintSessionFlags::PassedSurface)) @@ -622,18 +626,18 @@ bool MetalBSupportsPaintSetup( } bool MetalBSupportsPaintSetupRotated( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, Direction direction, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate) { - supportTypeMember = kMetalSupportTypeRotated[EnumValue(supportTypeMember)][direction]; + supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction]; placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction]; return MetalBSupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate); } void DrawSupportsSideBySide( - PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special) + PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special) { - type = kMetalSupportTypeRotated[EnumValue(type)][direction]; + type = kMetalSupportGraphicRotated[EnumValue(type)][direction]; if (direction & 1) { diff --git a/src/openrct2/paint/support/MetalSupports.h b/src/openrct2/paint/support/MetalSupports.h index cec5e65918..459dfd96e0 100644 --- a/src/openrct2/paint/support/MetalSupports.h +++ b/src/openrct2/paint/support/MetalSupports.h @@ -16,7 +16,7 @@ // There are 13 types of metal supports. A graphic showing all of them is available here: // https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png -enum class MetalSupportType : uint8_t +enum class MetalSupportGraphic : uint8_t { /** * Used by the Steel Twister, Looping RC, and other rides. @@ -95,19 +95,19 @@ struct FootpathPaintInfo; struct PaintSession; bool MetalASupportsPaintSetup( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate); bool MetalASupportsPaintSetupRotated( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, Direction direction, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate); bool MetalBSupportsPaintSetup( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate); bool MetalBSupportsPaintSetupRotated( - PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, Direction direction, + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate); void DrawSupportsSideBySide( - PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0); + PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special = 0); bool PathPoleSupportsPaintSetup( PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate, const FootpathPaintInfo& pathPaintInfo); diff --git a/src/openrct2/paint/track/Support.h b/src/openrct2/paint/track/Support.h index 346ca30b52..c29c8304d2 100644 --- a/src/openrct2/paint/track/Support.h +++ b/src/openrct2/paint/track/Support.h @@ -20,7 +20,7 @@ struct SupportType { uint8_t generic{}; WoodenSupportType wooden; - MetalSupportType metal; + MetalSupportGraphic metal; }; explicit constexpr SupportType() @@ -37,7 +37,7 @@ struct SupportType { } - constexpr SupportType(MetalSupportType _metal) + constexpr SupportType(MetalSupportGraphic _metal) : metal(_metal) { } diff --git a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp index e947bc10d0..c3be3ad852 100644 --- a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp @@ -55,7 +55,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } } @@ -79,7 +79,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } } @@ -115,7 +115,7 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][2]), { 0, 0, height - 2 }, { { 0, 2, height }, { 32, 28, 2 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -154,7 +154,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); } } @@ -186,7 +186,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); } } @@ -235,7 +235,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); } } @@ -267,7 +267,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); } } @@ -316,7 +316,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); } } @@ -348,7 +348,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); } } @@ -417,7 +417,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -495,7 +495,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); switch (direction) { @@ -558,7 +558,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -707,7 +707,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); switch (direction) { @@ -770,7 +770,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -867,7 +867,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 3)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; case 1: @@ -882,7 +882,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 11)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 3: @@ -937,7 +937,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -1034,7 +1034,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 19)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); break; case 1: @@ -1049,7 +1049,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 27)), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; case 3: @@ -1227,7 +1227,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 9, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 9, height, session.SupportColours); break; case 2: @@ -1236,7 +1236,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, session.SupportColours); break; } @@ -1254,7 +1254,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 9, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 9, height, session.SupportColours); break; case 2: @@ -1263,7 +1263,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, session.SupportColours); break; } @@ -1404,7 +1404,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 5)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -1413,7 +1413,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -1431,7 +1431,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 5)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -1440,7 +1440,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -1582,7 +1582,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -1592,7 +1592,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -1610,7 +1610,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 2, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 2, height, session.SupportColours); break; case 2: @@ -1619,7 +1619,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 2, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 2, height, session.SupportColours); break; } @@ -1760,7 +1760,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 11)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 8, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 8, height, session.SupportColours); break; case 2: @@ -1769,7 +1769,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, session.SupportColours); break; } @@ -1787,7 +1787,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 11)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 8, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 8, height, session.SupportColours); break; case 2: @@ -1796,7 +1796,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, session.SupportColours); break; } @@ -1934,7 +1934,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 7)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -1943,7 +1943,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -1961,7 +1961,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 7)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -1970,7 +1970,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -2112,7 +2112,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 3)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2121,7 +2121,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2139,7 +2139,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 3)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2148,7 +2148,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2202,7 +2202,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2247,7 +2247,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2306,7 +2306,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -2358,7 +2358,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -2410,7 +2410,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -2462,7 +2462,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -2536,7 +2536,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2635,7 +2635,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 2)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2644,7 +2644,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2744,7 +2744,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 6)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2753,7 +2753,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2853,7 +2853,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 9)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2862,7 +2862,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2962,7 +2962,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 4)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2971,7 +2971,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -3071,7 +3071,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 12)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -3080,7 +3080,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -3180,7 +3180,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 16)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -3189,7 +3189,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -3289,7 +3289,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 22)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -3298,7 +3298,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -3398,7 +3398,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 26)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -3407,7 +3407,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -3504,7 +3504,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 29)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -3513,7 +3513,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -3611,7 +3611,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 24)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -3620,7 +3620,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -3721,7 +3721,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 19)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -3730,7 +3730,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -3830,7 +3830,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 14)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -3839,7 +3839,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -3935,7 +3935,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 31)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -3944,7 +3944,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -4040,7 +4040,7 @@ namespace OpenRCT2::AlpineRC session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 33)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -4049,7 +4049,7 @@ namespace OpenRCT2::AlpineRC break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -4100,7 +4100,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4181,7 +4181,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 2, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); switch (direction) { @@ -4247,7 +4247,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4399,7 +4399,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 1, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); switch (direction) { @@ -4462,7 +4462,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4559,7 +4559,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 3)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; case 1: @@ -4574,7 +4574,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 11)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 3: @@ -4629,7 +4629,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4726,7 +4726,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 19)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); break; case 1: @@ -4741,7 +4741,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 27)), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; case 3: @@ -4812,7 +4812,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4859,7 +4859,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { @@ -4914,7 +4914,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -4944,7 +4944,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 9)), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, + session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -4958,7 +4959,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 13)), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, height, + session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -5037,7 +5039,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -5186,7 +5188,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { @@ -5241,7 +5243,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -5390,7 +5392,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { @@ -5461,7 +5463,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -5492,7 +5494,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 5)), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, session.SupportColours); break; case 2: @@ -5541,7 +5543,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 5)), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, session.SupportColours); break; } @@ -5580,7 +5582,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); switch (direction) { @@ -5635,7 +5637,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -5666,7 +5668,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 13)), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); break; case 2: @@ -5715,7 +5717,7 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 13)), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); break; } @@ -5754,7 +5756,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); switch (direction) { @@ -5812,7 +5814,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -5893,7 +5895,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); switch (direction) { @@ -5942,7 +5944,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 5, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); switch (direction) { @@ -6028,7 +6030,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6081,7 +6083,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6162,7 +6164,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); switch (direction) { @@ -6211,7 +6213,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 5, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); switch (direction) { @@ -6297,7 +6299,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6376,7 +6378,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6528,7 +6530,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); switch (direction) { @@ -6577,7 +6579,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 3, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3, height, session.SupportColours); switch (direction) { @@ -6734,7 +6736,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6786,7 +6788,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -6918,7 +6920,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 26)), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, + session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -6935,7 +6938,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 37)), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, + session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -6992,7 +6996,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 3, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3, height, session.SupportColours); switch (direction) { @@ -7139,7 +7143,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 37)), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -7153,7 +7158,8 @@ namespace OpenRCT2::AlpineRC session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 26)), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, + session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -7221,7 +7227,7 @@ namespace OpenRCT2::AlpineRC if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -7264,7 +7270,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -7311,7 +7317,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 10, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, height - 6, session.SupportColours); switch (direction) { @@ -7369,7 +7375,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -7416,7 +7422,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 10, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, height - 6, session.SupportColours); switch (direction) { @@ -7471,7 +7477,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height - 6, session.SupportColours); if (direction == 0 || direction == 3) { @@ -7521,7 +7527,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 5, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); switch (direction) { @@ -7576,7 +7582,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, + session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, height - 6, session.SupportColours); if (direction == 0 || direction == 3) { @@ -7626,7 +7632,7 @@ namespace OpenRCT2::AlpineRC break; } MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 5, + session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); switch (direction) { diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index 9c8ff8547f..cd951209af 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -9912,7 +9912,7 @@ static void FlyingRCTrackDiagBrakesInverted( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, kDiagSupportPlacement[direction], 0, height + 39, session.SupportColours); + session, MetalSupportGraphic::Boxed, kDiagSupportPlacement[direction], 0, height + 39, session.SupportColours); } PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp index 6d1368fd15..e43848a29c 100644 --- a/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp +++ b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp @@ -117,7 +117,7 @@ static void HeartlineTwisterRCTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp index 786c72307a..37c2770091 100644 --- a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp @@ -1866,7 +1866,7 @@ static void JuniorRCPaintTrackFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); } @@ -1929,7 +1929,7 @@ static void JuniorRCPaintStation( PaintAddImageAsChild(session, imageId, { 6, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); @@ -2065,12 +2065,12 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, supportHeight, session.SupportColours); break; case 6: MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, supportHeight, session.SupportColours); break; } @@ -2374,12 +2374,12 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, supportHeight, session.SupportColours); break; case 6: MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, supportHeight, session.SupportColours); break; } @@ -2840,12 +2840,12 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, (direction == 0 || direction == 3) ? 10 : 8, height, session.SupportColours); break; case 6: MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, supportSpecial[direction], height, session.SupportColours); break; } @@ -2945,13 +2945,13 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, supportSpecial[direction], height, session.SupportColours); break; case 6: MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, - session.SupportColours); + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, + height, session.SupportColours); break; } @@ -3124,15 +3124,15 @@ static void JuniorRCSBendLeftPaintSetup( { case 0: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } @@ -3234,15 +3234,16 @@ static void JuniorRCSBendRightPaintSetup( { case 0: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session.SupportColours); break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } @@ -3663,13 +3664,13 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup( if (trackSequence == 0) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); } else if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } @@ -3736,13 +3737,13 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup( if (trackSequence == 0) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); } else if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 2, height, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); } @@ -3841,13 +3842,13 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( if (trackSequence == 0) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); } else if (trackSequence == 6) { MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); } @@ -3948,13 +3949,13 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( if (trackSequence == 0) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 7, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); } else if (trackSequence == 6) { MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 1, height, + session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); } @@ -4156,19 +4157,19 @@ static void JuniorRCLeftEighthToDiagPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + height, session.SupportColours); break; case 4: if (direction == 0) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); if (direction == 1) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); if (direction == 2) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); if (direction == 3) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); @@ -4229,19 +4230,19 @@ static void JuniorRCRightEighthToDiagPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + height, session.SupportColours); break; case 4: if (direction == 0) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); if (direction == 1) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); if (direction == 2) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); if (direction == 3) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); @@ -4401,8 +4402,8 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + height, session.SupportColours); break; case 4: if (direction == 0) @@ -4410,13 +4411,13 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); if (direction == 1) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); if (direction == 2) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); if (direction == 3) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; } @@ -4555,8 +4556,8 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( { case 0: MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, + height, session.SupportColours); break; case 4: if (direction == 0) @@ -4564,13 +4565,13 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); if (direction == 1) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); if (direction == 2) MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); if (direction == 3) MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -4655,7 +4656,7 @@ static void JuniorRCTrackDiagBrakes( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4675,7 +4676,7 @@ static void JuniorRCTrackDiagBlockBrakes( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4697,7 +4698,7 @@ static void JuniorRCPaintTrackDiag25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } @@ -4719,7 +4720,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4742,7 +4743,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height + 6, session.SupportColours); } @@ -4764,7 +4765,7 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -4787,7 +4788,7 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height + 13, session.SupportColours); } @@ -4809,7 +4810,7 @@ static void JuniorRCPaintTrackDiag25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } @@ -4831,7 +4832,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -4854,7 +4855,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height + 7, session.SupportColours); } @@ -4876,7 +4877,7 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4899,7 +4900,7 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4926,7 +4927,7 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4953,7 +4954,7 @@ static void JuniorRCDiagFlatToRightBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -4980,7 +4981,7 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5007,7 +5008,7 @@ static void JuniorRCDiagRightBankToFlatPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5034,7 +5035,7 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5061,7 +5062,7 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5088,7 +5089,7 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -5115,7 +5116,7 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -5142,7 +5143,7 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -5169,7 +5170,7 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } @@ -5196,7 +5197,7 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5223,7 +5224,7 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5259,7 +5260,7 @@ static void JuniorRCDiagLeftBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5281,7 +5282,7 @@ static void JuniorRCDiagRightBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } @@ -5352,7 +5353,7 @@ static void JuniorRCPaintTrack60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, support[direction & 3], height, session.SupportColours); } @@ -5438,7 +5439,7 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, support[direction & 3], height, session.SupportColours); } @@ -5502,7 +5503,7 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height, session.SupportColours); } @@ -5535,7 +5536,7 @@ static void JuniorRCPaintTrackDiag60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 36, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 36, height, session.SupportColours); } @@ -5558,7 +5559,7 @@ static void JuniorRCPaintTrackDiag60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 28, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 28, height, session.SupportColours); } @@ -5581,7 +5582,7 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 16, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 16, height, session.SupportColours); } @@ -5614,7 +5615,7 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 21, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 21, height, session.SupportColours); } @@ -5647,7 +5648,7 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 17, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 17, height, session.SupportColours); } @@ -5670,7 +5671,7 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } @@ -5758,7 +5759,7 @@ static void JuniorRCFlatTo60DegUpPaintSetup( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, support[direction], height - 7, session.SupportColours); } @@ -5820,8 +5821,8 @@ static void JuniorRC60DegUpToFlatPaintSetup( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height - 5, - session.SupportColours); + session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, + height - 5, session.SupportColours); } PaintUtilSetSegmentSupportHeight( diff --git a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp index a23423498a..77600468fb 100644 --- a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp @@ -2356,7 +2356,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15350), { 16, 0, height }, { { 16, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, + session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15364), { 16, 0, height }, @@ -2367,7 +2367,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15358), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15366), { 12, 0, height }, @@ -2378,7 +2378,8 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15353), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, 0, height - 8, session.TrackColours); + session, MetalSupportGraphic::Thick, MetalSupportPlace::RightCorner, 0, height - 8, + session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15365), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); @@ -2388,7 +2389,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15361), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15367), { 16, 16, height }, @@ -2479,7 +2480,8 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15353), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, 0, height - 8, session.TrackColours); + session, MetalSupportGraphic::Thick, MetalSupportPlace::RightCorner, 0, height - 8, + session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15365), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); @@ -2489,7 +2491,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15361), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15367), { 16, 16, height }, @@ -2500,7 +2502,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15350), { 16, 0, height }, { { 16, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, + session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15364), { 16, 0, height }, @@ -2511,7 +2513,7 @@ static void LoopingRCTrackLeftVerticalLoop( session, direction, session.TrackColours.WithIndex(15358), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15366), { 12, 0, height }, @@ -2663,7 +2665,8 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15381), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, session.TrackColours); + session, MetalSupportGraphic::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, + session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15384), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); @@ -2673,7 +2676,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15373), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15386), { 10, 16, height }, @@ -2684,7 +2687,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15378), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, + session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15385), { 12, 0, height }, @@ -2695,7 +2698,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15370), { 16, 0, height }, { { 16, 0, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15387), { 16, 0, height }, @@ -2762,7 +2765,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15378), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, + session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15385), { 12, 0, height }, @@ -2773,7 +2776,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15370), { 16, 0, height }, { { 16, 0, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15387), { 16, 0, height }, @@ -2784,7 +2787,8 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15381), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, session.TrackColours); + session, MetalSupportGraphic::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, + session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15384), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); @@ -2794,7 +2798,7 @@ static void LoopingRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(15373), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, + session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15386), { 10, 16, height }, diff --git a/src/openrct2/paint/track/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp index 71e2b5d5a9..5632ccdc66 100644 --- a/src/openrct2/paint/track/coaster/MineRide.cpp +++ b/src/openrct2/paint/track/coaster/MineRide.cpp @@ -61,7 +61,7 @@ static void MineRideTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -1277,7 +1277,7 @@ static void MineRideTrackSBendRight( session, direction, session.TrackColours.WithIndex(19473), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, session.SupportColours); break; case 2: @@ -1322,7 +1322,7 @@ static void MineRideTrackSBendRight( session, direction, session.TrackColours.WithIndex(19473), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, session.SupportColours); break; } @@ -1351,7 +1351,7 @@ static void MineRideTrackSBendRight( session, direction, session.TrackColours.WithIndex(19475), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1365,7 +1365,7 @@ static void MineRideTrackSBendRight( session, direction, session.TrackColours.WithIndex(19472), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } switch (direction) @@ -1412,7 +1412,7 @@ static void MineRideTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(19400), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1426,7 +1426,7 @@ static void MineRideTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(19394), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1488,7 +1488,7 @@ static void MineRideTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(19395), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1502,7 +1502,7 @@ static void MineRideTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(19401), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1568,7 +1568,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(19412), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1582,7 +1582,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(19406), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1644,7 +1644,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(19407), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1661,7 +1661,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(19417), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1727,7 +1727,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19498), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1741,7 +1741,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19492), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1803,7 +1803,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19493), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1820,7 +1820,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19503), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1857,7 +1857,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19492), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1874,7 +1874,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19498), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1955,7 +1955,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19493), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1972,7 +1972,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19503), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2014,7 +2014,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19479), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2031,7 +2031,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19489), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2093,7 +2093,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19478), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2110,7 +2110,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19484), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2147,7 +2147,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19479), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2164,7 +2164,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19489), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2248,7 +2248,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19484), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2262,7 +2262,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(19478), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2337,7 +2337,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19540), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2351,7 +2351,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19530), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2484,7 +2484,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19531), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2501,7 +2501,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19547), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2538,7 +2538,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19530), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2555,7 +2555,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19540), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2706,7 +2706,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19531), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2723,7 +2723,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19547), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2765,7 +2765,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19509), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2782,7 +2782,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19525), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2914,7 +2914,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19508), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2931,7 +2931,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19518), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2968,7 +2968,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19509), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2985,7 +2985,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19525), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3140,7 +3140,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19518), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3154,7 +3154,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19508), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3264,7 +3264,7 @@ static void MineRideTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19568), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3278,7 +3278,7 @@ static void MineRideTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19576), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3383,7 +3383,8 @@ static void MineRideTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19571), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3397,7 +3398,8 @@ static void MineRideTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19579), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3435,7 +3437,7 @@ static void MineRideTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19552), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3449,7 +3451,7 @@ static void MineRideTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19560), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3554,7 +3556,7 @@ static void MineRideTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19555), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3568,7 +3570,8 @@ static void MineRideTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19563), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3624,7 +3627,7 @@ static void MineRideTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19600), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3638,7 +3641,7 @@ static void MineRideTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19608), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3743,7 +3746,8 @@ static void MineRideTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19603), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3757,7 +3761,8 @@ static void MineRideTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19611), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3795,7 +3800,7 @@ static void MineRideTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19584), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3809,7 +3814,7 @@ static void MineRideTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19592), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3914,7 +3919,7 @@ static void MineRideTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19587), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3928,7 +3933,8 @@ static void MineRideTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19595), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4056,7 +4062,8 @@ static void MineRideTrackDiag25DegUp( session, direction, session.TrackColours.WithIndex(19625), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4064,7 +4071,7 @@ static void MineRideTrackDiag25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -4156,7 +4163,7 @@ static void MineRideTrackDiagFlatTo25DegUp( session, direction, session.TrackColours.WithIndex(19617), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4164,7 +4171,8 @@ static void MineRideTrackDiagFlatTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4255,7 +4263,8 @@ static void MineRideTrackDiag25DegUpToFlat( session, direction, session.TrackColours.WithIndex(19621), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4263,7 +4272,7 @@ static void MineRideTrackDiag25DegUpToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -4355,7 +4364,8 @@ static void MineRideTrackDiag25DegDown( session, direction, session.TrackColours.WithIndex(19627), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4363,7 +4373,7 @@ static void MineRideTrackDiag25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -4452,7 +4462,8 @@ static void MineRideTrackDiagFlatTo25DegDown( session, direction, session.TrackColours.WithIndex(19623), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4460,7 +4471,7 @@ static void MineRideTrackDiagFlatTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -4553,7 +4564,7 @@ static void MineRideTrackDiag25DegDownToFlat( session, direction, session.TrackColours.WithIndex(19619), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -4561,7 +4572,8 @@ static void MineRideTrackDiag25DegDownToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4655,7 +4667,7 @@ static void MineRideTrackDiagFlatToLeftBank( session, direction, session.TrackColours.WithIndex(19633), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -4663,7 +4675,8 @@ static void MineRideTrackDiagFlatToLeftBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4757,7 +4770,7 @@ static void MineRideTrackDiagFlatToRightBank( session, direction, session.TrackColours.WithIndex(19638), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -4765,7 +4778,8 @@ static void MineRideTrackDiagFlatToRightBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4859,7 +4873,7 @@ static void MineRideTrackDiagLeftBankToFlat( session, direction, session.TrackColours.WithIndex(19640), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -4867,7 +4881,8 @@ static void MineRideTrackDiagLeftBankToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -4961,7 +4976,7 @@ static void MineRideTrackDiagRightBankToFlat( session, direction, session.TrackColours.WithIndex(19635), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -4969,7 +4984,8 @@ static void MineRideTrackDiagRightBankToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5063,7 +5079,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( session, direction, session.TrackColours.WithIndex(19653), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5071,7 +5087,8 @@ static void MineRideTrackDiagLeftBankTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5165,7 +5182,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( session, direction, session.TrackColours.WithIndex(19658), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5173,7 +5190,8 @@ static void MineRideTrackDiagRightBankTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5267,7 +5285,8 @@ static void MineRideTrackDiag25DegUpToLeftBank( session, direction, session.TrackColours.WithIndex(19643), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5275,7 +5294,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -5370,7 +5389,8 @@ static void MineRideTrackDiag25DegUpToRightBank( session, direction, session.TrackColours.WithIndex(19648), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5378,7 +5398,7 @@ static void MineRideTrackDiag25DegUpToRightBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -5470,7 +5490,8 @@ static void MineRideTrackDiagLeftBankTo25DegDown( session, direction, session.TrackColours.WithIndex(19650), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5478,7 +5499,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -5571,7 +5592,8 @@ static void MineRideTrackDiagRightBankTo25DegDown( session, direction, session.TrackColours.WithIndex(19645), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5579,7 +5601,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -5675,7 +5697,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( session, direction, session.TrackColours.WithIndex(19660), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5683,7 +5705,8 @@ static void MineRideTrackDiag25DegDownToLeftBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5777,7 +5800,7 @@ static void MineRideTrackDiag25DegDownToRightBank( session, direction, session.TrackColours.WithIndex(19655), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5785,7 +5808,8 @@ static void MineRideTrackDiag25DegDownToRightBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5876,7 +5900,7 @@ static void MineRideTrackDiagLeftBank( session, direction, session.TrackColours.WithIndex(19629), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -5884,7 +5908,8 @@ static void MineRideTrackDiagLeftBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5975,7 +6000,7 @@ static void MineRideTrackDiagRightBank( session, direction, session.TrackColours.WithIndex(19631), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -5983,7 +6008,8 @@ static void MineRideTrackDiagRightBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( diff --git a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp index 59b6dc91e2..e7353ba85f 100644 --- a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp @@ -161,7 +161,7 @@ static void MineTrainRCTrackStation( session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 0, height }, { { 0, 0, height }, { 32, 20, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp index 6b10410a39..eeef40b2ae 100644 --- a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp @@ -61,7 +61,7 @@ static void MiniRCTrackFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -81,7 +81,7 @@ static void MiniRCTrackFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -109,7 +109,7 @@ static void MiniRCTrackFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -146,7 +146,7 @@ static void MiniRCTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -179,7 +179,7 @@ static void MiniRCTrack25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -199,7 +199,7 @@ static void MiniRCTrack25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -225,7 +225,7 @@ static void MiniRCTrack25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -245,7 +245,7 @@ static void MiniRCTrack25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -286,7 +286,7 @@ static void MiniRCTrack60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); } break; case 2: @@ -306,7 +306,7 @@ static void MiniRCTrack60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); } break; } @@ -348,7 +348,7 @@ static void MiniRCTrackFlatTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -368,7 +368,7 @@ static void MiniRCTrackFlatTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -394,7 +394,7 @@ static void MiniRCTrackFlatTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -414,7 +414,7 @@ static void MiniRCTrackFlatTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -458,7 +458,7 @@ static void MiniRCTrack25DegUpTo60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); } break; case 2: @@ -481,7 +481,7 @@ static void MiniRCTrack25DegUpTo60DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); } break; } @@ -524,7 +524,7 @@ static void MiniRCTrack60DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); } break; case 2: @@ -547,7 +547,7 @@ static void MiniRCTrack60DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); } break; } @@ -589,7 +589,7 @@ static void MiniRCTrack25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -609,7 +609,7 @@ static void MiniRCTrack25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -635,7 +635,7 @@ static void MiniRCTrack25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -655,7 +655,7 @@ static void MiniRCTrack25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -742,7 +742,7 @@ static void MiniRCTrackLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18856), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -756,7 +756,7 @@ static void MiniRCTrackLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18846), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -889,7 +889,7 @@ static void MiniRCTrackLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18847), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -903,7 +903,7 @@ static void MiniRCTrackLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18857), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -974,7 +974,7 @@ static void MiniRCTrackFlatToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -994,7 +994,7 @@ static void MiniRCTrackFlatToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -1027,7 +1027,7 @@ static void MiniRCTrackFlatToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -1053,7 +1053,7 @@ static void MiniRCTrackFlatToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -1092,7 +1092,7 @@ static void MiniRCTrackLeftBankToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -1112,7 +1112,7 @@ static void MiniRCTrackLeftBankToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -1145,7 +1145,7 @@ static void MiniRCTrackRightBankToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -1171,7 +1171,7 @@ static void MiniRCTrackRightBankToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -1205,7 +1205,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18876), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1219,7 +1219,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18866), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1352,7 +1352,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18867), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1369,7 +1369,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( session, direction, session.TrackColours.WithIndex(18883), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1440,7 +1440,7 @@ static void MiniRCTrackLeftBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -1460,7 +1460,7 @@ static void MiniRCTrackLeftBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -1500,7 +1500,7 @@ static void MiniRCTrackRightBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -1526,7 +1526,7 @@ static void MiniRCTrackRightBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -1572,7 +1572,7 @@ static void MiniRCTrack25DegUpToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -1592,7 +1592,7 @@ static void MiniRCTrack25DegUpToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -1632,7 +1632,7 @@ static void MiniRCTrack25DegUpToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -1658,7 +1658,7 @@ static void MiniRCTrack25DegUpToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -1730,7 +1730,7 @@ static void MiniRCTrackLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; case 2: @@ -1750,7 +1750,7 @@ static void MiniRCTrackLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -1789,7 +1789,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18941), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1803,7 +1803,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18951), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1931,7 +1931,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18940), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1945,7 +1945,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18950), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1999,7 +1999,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18921), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2013,7 +2013,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18931), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2140,7 +2140,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18920), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2154,7 +2154,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(18930), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2226,7 +2226,7 @@ static void MiniRCTrackSBendLeft( session, direction, session.TrackColours.WithIndex(18904), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2240,7 +2240,7 @@ static void MiniRCTrackSBendLeft( session, direction, session.TrackColours.WithIndex(18907), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2270,7 +2270,8 @@ static void MiniRCTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18905), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2316,7 +2317,8 @@ static void MiniRCTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18905), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -2344,7 +2346,7 @@ static void MiniRCTrackSBendLeft( session, direction, session.TrackColours.WithIndex(18907), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2358,7 +2360,7 @@ static void MiniRCTrackSBendLeft( session, direction, session.TrackColours.WithIndex(18904), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } switch (direction) @@ -2405,7 +2407,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18912), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2419,7 +2421,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18915), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2451,7 +2453,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18913), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, session.SupportColours); break; case 2: @@ -2496,7 +2498,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18913), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, session.SupportColours); break; } @@ -2525,7 +2527,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18915), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2539,7 +2541,7 @@ static void MiniRCTrackSBendRight( session, direction, session.TrackColours.WithIndex(18912), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } switch (direction) @@ -2586,7 +2588,7 @@ static void MiniRCTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(18824), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2600,7 +2602,7 @@ static void MiniRCTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(18818), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2662,7 +2664,7 @@ static void MiniRCTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(18819), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2676,7 +2678,7 @@ static void MiniRCTrackLeftQuarterTurn3( session, direction, session.TrackColours.WithIndex(18825), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2742,7 +2744,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(18836), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2756,7 +2758,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(18830), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2818,7 +2820,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(18831), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2835,7 +2837,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( session, direction, session.TrackColours.WithIndex(18841), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2896,7 +2898,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18969), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2908,7 +2910,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18965), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -2938,7 +2940,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18966), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2950,7 +2952,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18970), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3001,7 +3003,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18958), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3013,7 +3015,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18962), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3043,7 +3045,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18957), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3055,7 +3057,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18961), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3129,7 +3131,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18994), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3143,7 +3145,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18988), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3205,7 +3207,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18989), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3222,7 +3224,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18999), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3259,7 +3261,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18988), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3276,7 +3278,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18994), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3357,7 +3359,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18989), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3374,7 +3376,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18999), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3416,7 +3418,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18975), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3433,7 +3435,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18985), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3495,7 +3497,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18974), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3512,7 +3514,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18980), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3549,7 +3551,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18975), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3566,7 +3568,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18985), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3650,7 +3652,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18980), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3664,7 +3666,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( session, direction, session.TrackColours.WithIndex(18974), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3738,7 +3740,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19036), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3752,7 +3754,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19026), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -3885,7 +3887,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19027), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3902,7 +3904,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19043), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3939,7 +3941,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19026), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3956,7 +3958,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19036), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -4107,7 +4109,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19027), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -4124,7 +4126,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19043), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -4166,7 +4168,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19005), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -4183,7 +4185,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19021), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -4315,7 +4317,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19004), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -4332,7 +4334,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19014), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -4369,7 +4371,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19005), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -4386,7 +4388,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19021), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -4541,7 +4543,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19014), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -4555,7 +4557,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( session, direction, session.TrackColours.WithIndex(19004), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -4738,7 +4740,7 @@ static void MiniRCTrackBrakes( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -4771,7 +4773,7 @@ static void MiniRCTrack25DegUpLeftBanked( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -4791,7 +4793,7 @@ static void MiniRCTrack25DegUpLeftBanked( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -4831,7 +4833,7 @@ static void MiniRCTrack25DegUpRightBanked( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -4851,7 +4853,7 @@ static void MiniRCTrack25DegUpRightBanked( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -4943,7 +4945,7 @@ static void MiniRCTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19080), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -4957,7 +4959,7 @@ static void MiniRCTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19088), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -5062,7 +5064,8 @@ static void MiniRCTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19083), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5076,7 +5079,8 @@ static void MiniRCTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(19091), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5114,7 +5118,7 @@ static void MiniRCTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19064), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5128,7 +5132,7 @@ static void MiniRCTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19072), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -5233,7 +5237,7 @@ static void MiniRCTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19067), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5247,7 +5251,8 @@ static void MiniRCTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(19075), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5303,7 +5308,7 @@ static void MiniRCTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19112), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5317,7 +5322,7 @@ static void MiniRCTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19120), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -5422,7 +5427,8 @@ static void MiniRCTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19115), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5436,7 +5442,8 @@ static void MiniRCTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19123), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5474,7 +5481,7 @@ static void MiniRCTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19096), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5488,7 +5495,7 @@ static void MiniRCTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19104), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -5593,7 +5600,7 @@ static void MiniRCTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19099), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -5607,7 +5614,8 @@ static void MiniRCTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(19107), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -5783,7 +5791,7 @@ static void MiniRCTrackDiag25DegUp( session, direction, session.TrackColours.WithIndex(19199), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); break; case 2: @@ -5792,7 +5800,7 @@ static void MiniRCTrackDiag25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -5810,7 +5818,7 @@ static void MiniRCTrackDiag25DegUp( session, direction, session.TrackColours.WithIndex(19137), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); break; case 2: @@ -5819,7 +5827,7 @@ static void MiniRCTrackDiag25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -5912,7 +5920,8 @@ static void MiniRCTrackDiag60DegUp( session, direction, session.TrackColours.WithIndex(19149), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 42, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 42, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -5920,7 +5929,7 @@ static void MiniRCTrackDiag60DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 42, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 42, height, session.SupportColours); break; } @@ -6056,7 +6065,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( session, direction, session.TrackColours.WithIndex(19191), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -6065,7 +6074,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -6083,7 +6092,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( session, direction, session.TrackColours.WithIndex(19129), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -6092,7 +6101,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -6185,7 +6194,8 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( session, direction, session.TrackColours.WithIndex(19141), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 22, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 22, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -6193,7 +6203,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 22, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 22, height, session.SupportColours); break; } @@ -6285,7 +6295,8 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( session, direction, session.TrackColours.WithIndex(19145), { -16, -16, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 27, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 27, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -6293,7 +6304,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 27, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 27, height, session.SupportColours); break; } @@ -6429,7 +6440,7 @@ static void MiniRCTrackDiag25DegUpToFlat( session, direction, session.TrackColours.WithIndex(19195), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); break; case 2: @@ -6438,7 +6449,7 @@ static void MiniRCTrackDiag25DegUpToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -6456,7 +6467,7 @@ static void MiniRCTrackDiag25DegUpToFlat( session, direction, session.TrackColours.WithIndex(19133), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); break; case 2: @@ -6465,7 +6476,7 @@ static void MiniRCTrackDiag25DegUpToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -6602,7 +6613,7 @@ static void MiniRCTrackDiag25DegDown( session, direction, session.TrackColours.WithIndex(19201), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); break; case 2: @@ -6611,7 +6622,7 @@ static void MiniRCTrackDiag25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -6629,7 +6640,7 @@ static void MiniRCTrackDiag25DegDown( session, direction, session.TrackColours.WithIndex(19139), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); break; case 2: @@ -6638,7 +6649,7 @@ static void MiniRCTrackDiag25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -6731,7 +6742,8 @@ static void MiniRCTrackDiag60DegDown( session, direction, session.TrackColours.WithIndex(19151), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 34, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 34, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -6739,7 +6751,7 @@ static void MiniRCTrackDiag60DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 34, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 34, height, session.SupportColours); break; } @@ -6872,7 +6884,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( session, direction, session.TrackColours.WithIndex(19197), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); break; case 2: @@ -6881,7 +6893,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -6899,7 +6911,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( session, direction, session.TrackColours.WithIndex(19135), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); break; case 2: @@ -6908,7 +6920,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -7002,7 +7014,8 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( session, direction, session.TrackColours.WithIndex(19147), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 23, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 23, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -7010,7 +7023,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 23, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 23, height, session.SupportColours); break; } @@ -7102,7 +7115,8 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( session, direction, session.TrackColours.WithIndex(19143), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -7110,7 +7124,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, session.SupportColours); break; } @@ -7246,7 +7260,7 @@ static void MiniRCTrackDiag25DegDownToFlat( session, direction, session.TrackColours.WithIndex(19193), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -7255,7 +7269,7 @@ static void MiniRCTrackDiag25DegDownToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -7273,7 +7287,7 @@ static void MiniRCTrackDiag25DegDownToFlat( session, direction, session.TrackColours.WithIndex(19131), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -7282,7 +7296,7 @@ static void MiniRCTrackDiag25DegDownToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -7378,7 +7392,7 @@ static void MiniRCTrackDiagFlatToLeftBank( session, direction, session.TrackColours.WithIndex(19157), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -7386,7 +7400,8 @@ static void MiniRCTrackDiagFlatToLeftBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7480,7 +7495,7 @@ static void MiniRCTrackDiagFlatToRightBank( session, direction, session.TrackColours.WithIndex(19162), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -7488,7 +7503,8 @@ static void MiniRCTrackDiagFlatToRightBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7582,7 +7598,7 @@ static void MiniRCTrackDiagLeftBankToFlat( session, direction, session.TrackColours.WithIndex(19164), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -7590,7 +7606,8 @@ static void MiniRCTrackDiagLeftBankToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7684,7 +7701,7 @@ static void MiniRCTrackDiagRightBankToFlat( session, direction, session.TrackColours.WithIndex(19159), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -7692,7 +7709,8 @@ static void MiniRCTrackDiagRightBankToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7786,7 +7804,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( session, direction, session.TrackColours.WithIndex(19177), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -7794,7 +7812,8 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7888,7 +7907,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( session, direction, session.TrackColours.WithIndex(19182), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -7896,7 +7915,8 @@ static void MiniRCTrackDiagRightBankTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -7990,7 +8010,8 @@ static void MiniRCTrackDiag25DegUpToLeftBank( session, direction, session.TrackColours.WithIndex(19167), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -7998,7 +8019,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -8093,7 +8114,8 @@ static void MiniRCTrackDiag25DegUpToRightBank( session, direction, session.TrackColours.WithIndex(19172), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -8101,7 +8123,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -8193,7 +8215,8 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( session, direction, session.TrackColours.WithIndex(19174), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -8201,7 +8224,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -8294,7 +8317,8 @@ static void MiniRCTrackDiagRightBankTo25DegDown( session, direction, session.TrackColours.WithIndex(19169), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 10, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, + session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -8302,7 +8326,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, session.SupportColours); break; } @@ -8398,7 +8422,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( session, direction, session.TrackColours.WithIndex(19184), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -8406,7 +8430,8 @@ static void MiniRCTrackDiag25DegDownToLeftBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -8500,7 +8525,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( session, direction, session.TrackColours.WithIndex(19179), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalBSupportsPaintSetup( @@ -8508,7 +8533,8 @@ static void MiniRCTrackDiag25DegDownToRightBank( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -8599,7 +8625,7 @@ static void MiniRCTrackDiagLeftBank( session, direction, session.TrackColours.WithIndex(19153), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -8607,7 +8633,8 @@ static void MiniRCTrackDiagLeftBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -8698,7 +8725,7 @@ static void MiniRCTrackDiagRightBank( session, direction, session.TrackColours.WithIndex(19155), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: MetalASupportsPaintSetup( @@ -8706,7 +8733,8 @@ static void MiniRCTrackDiagRightBank( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -8746,7 +8774,7 @@ static void MiniRCTrackBlockBrakes( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } @@ -8776,7 +8804,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(19319), { 0, 6, height }, { { 0, 27, height }, { 32, 1, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -8788,7 +8816,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19315), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -8818,7 +8846,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19316), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -8832,7 +8860,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(19320), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -8883,7 +8911,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19308), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -8896,7 +8924,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19312), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -8926,7 +8954,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19307), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -8940,7 +8968,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(19311), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -9013,7 +9041,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19291), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -9027,7 +9055,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19301), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -9158,7 +9186,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19290), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -9172,7 +9200,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19300), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -9226,7 +9254,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19271), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -9240,7 +9268,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19281), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -9370,7 +9398,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19270), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -9384,7 +9412,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( session, direction, session.TrackColours.WithIndex(19280), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -9463,7 +9491,7 @@ static void MiniRCTrack25DegUpToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -9483,7 +9511,7 @@ static void MiniRCTrack25DegUpToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -9523,7 +9551,7 @@ static void MiniRCTrack25DegUpToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -9546,7 +9574,7 @@ static void MiniRCTrack25DegUpToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -9589,7 +9617,7 @@ static void MiniRCTrackLeftBanked25DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -9609,7 +9637,7 @@ static void MiniRCTrackLeftBanked25DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -9649,7 +9677,7 @@ static void MiniRCTrackRightBanked25DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; case 2: @@ -9672,7 +9700,7 @@ static void MiniRCTrackRightBanked25DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); } break; } @@ -9746,7 +9774,7 @@ static void MiniRCTrackLeftBankedFlatToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -9766,7 +9794,7 @@ static void MiniRCTrackLeftBankedFlatToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -9806,7 +9834,7 @@ static void MiniRCTrackRightBankedFlatToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -9826,7 +9854,7 @@ static void MiniRCTrackRightBankedFlatToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -9866,7 +9894,7 @@ static void MiniRCTrackLeftBanked25DegUpToLeftBankedFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -9886,7 +9914,7 @@ static void MiniRCTrackLeftBanked25DegUpToLeftBankedFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -9926,7 +9954,7 @@ static void MiniRCTrackRightBanked25DegUpToRightBankedFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -9946,7 +9974,7 @@ static void MiniRCTrackRightBanked25DegUpToRightBankedFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -10025,7 +10053,7 @@ static void MiniRCTrackFlatToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -10045,7 +10073,7 @@ static void MiniRCTrackFlatToLeftBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -10085,7 +10113,7 @@ static void MiniRCTrackFlatToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; case 2: @@ -10108,7 +10136,7 @@ static void MiniRCTrackFlatToRightBanked25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); } break; } @@ -10151,7 +10179,7 @@ static void MiniRCTrackLeftBanked25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -10171,7 +10199,7 @@ static void MiniRCTrackLeftBanked25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -10211,7 +10239,7 @@ static void MiniRCTrackRightBanked25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; case 2: @@ -10234,7 +10262,7 @@ static void MiniRCTrackRightBanked25DegUpToFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); } break; } @@ -10301,7 +10329,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19335), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -10313,7 +10341,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19331), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -10343,7 +10371,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19332), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -10355,7 +10383,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19336), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -10405,7 +10433,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19324), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -10417,7 +10445,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19328), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -10447,7 +10475,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19323), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -10459,7 +10487,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19327), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -10515,7 +10543,7 @@ static void MiniRCTrackBooster( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); } break; } diff --git a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp index a5940c2f25..c1f50b93fa 100644 --- a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp @@ -79,7 +79,7 @@ static void MiniSuspendedRCTrackFlat( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); break; } } @@ -108,7 +108,7 @@ static void MiniSuspendedRCTrackStation( PaintAddImageAsChildRotated( session, direction, session.SupportColours.WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { { 0, 2, height }, { 32, 20, 1 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -184,7 +184,7 @@ static void MiniSuspendedRCTrack25DegUp( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 46, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 46, session.SupportColours); break; case 2: @@ -193,7 +193,8 @@ static void MiniSuspendedRCTrack25DegUp( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 46, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 46, + session.SupportColours); break; } } @@ -278,7 +279,7 @@ static void MiniSuspendedRCTrackFlatTo25DegUp( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, session.SupportColours); break; case 2: @@ -287,7 +288,8 @@ static void MiniSuspendedRCTrackFlatTo25DegUp( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, + session.SupportColours); break; } } @@ -372,7 +374,7 @@ static void MiniSuspendedRCTrack25DegUpToFlat( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, session.SupportColours); break; case 2: @@ -381,7 +383,8 @@ static void MiniSuspendedRCTrack25DegUpToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, + session.SupportColours); break; } } @@ -467,7 +470,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -607,7 +611,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( case 0: case 2: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; case 1: case 3: @@ -685,7 +690,8 @@ static void MiniSuspendedRCTrackSBendLeft( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -732,7 +738,7 @@ static void MiniSuspendedRCTrackSBendLeft( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, session.SupportColours); break; } @@ -776,7 +782,7 @@ static void MiniSuspendedRCTrackSBendLeft( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, session.SupportColours); break; } @@ -822,7 +828,8 @@ static void MiniSuspendedRCTrackSBendLeft( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -886,7 +893,8 @@ static void MiniSuspendedRCTrackSBendRight( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -933,7 +941,7 @@ static void MiniSuspendedRCTrackSBendRight( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, session.SupportColours); break; } @@ -977,7 +985,7 @@ static void MiniSuspendedRCTrackSBendRight( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, session.SupportColours); break; } @@ -1023,7 +1031,8 @@ static void MiniSuspendedRCTrackSBendRight( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -1087,7 +1096,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -1164,7 +1174,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( case 0: case 2: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; case 1: case 3: @@ -1246,7 +1257,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -1376,7 +1388,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::LeftCorner, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height + 30, session.SupportColours); break; case 2: @@ -1385,7 +1397,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::RightCorner, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height + 30, session.SupportColours); break; } @@ -1445,7 +1457,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( case 1: case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, + session.SupportColours); break; } @@ -1575,7 +1588,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 30, session.SupportColours); break; case 2: @@ -1584,7 +1597,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 30, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 30, session.SupportColours); break; } @@ -1776,7 +1789,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, session.SupportColours); break; case 2: @@ -1785,7 +1798,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, session.SupportColours); break; } @@ -1940,7 +1953,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, session.SupportColours); break; case 2: @@ -1949,7 +1962,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, session.SupportColours); break; } @@ -2104,7 +2117,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, session.SupportColours); break; case 2: @@ -2113,7 +2126,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, session.SupportColours); break; } @@ -2268,7 +2281,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, session.SupportColours); break; case 2: @@ -2277,7 +2290,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, session.SupportColours); break; } @@ -2429,7 +2442,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, session.SupportColours); break; case 2: @@ -2438,7 +2451,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, session.SupportColours); break; } @@ -2593,7 +2606,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, session.SupportColours); break; case 2: @@ -2602,7 +2615,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, + session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, session.SupportColours); break; } diff --git a/src/openrct2/paint/track/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp index 701c05a59b..ca5b868318 100644 --- a/src/openrct2/paint/track/coaster/Steeplechase.cpp +++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp @@ -51,7 +51,7 @@ static void SteeplechaseTrackFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } @@ -71,7 +71,7 @@ static void SteeplechaseTrackFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28634), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } @@ -97,7 +97,7 @@ static void SteeplechaseTrackStation( PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 6, height }, { { 0, 0, height }, { 32, 20, 3 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -123,7 +123,7 @@ static void SteeplechaseTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28655), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -135,7 +135,7 @@ static void SteeplechaseTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28656), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } } @@ -153,7 +153,7 @@ static void SteeplechaseTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28643), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -165,7 +165,7 @@ static void SteeplechaseTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28644), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } } @@ -200,7 +200,7 @@ static void SteeplechaseTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28657), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -212,7 +212,7 @@ static void SteeplechaseTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28658), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; } } @@ -230,7 +230,7 @@ static void SteeplechaseTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28645), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -242,7 +242,7 @@ static void SteeplechaseTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28646), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; } } @@ -277,7 +277,7 @@ static void SteeplechaseTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28660), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -289,7 +289,7 @@ static void SteeplechaseTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28659), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; } } @@ -307,7 +307,7 @@ static void SteeplechaseTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28648), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -319,7 +319,7 @@ static void SteeplechaseTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28647), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; } } @@ -379,7 +379,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28703), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -391,7 +391,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28693), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 1, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 1, + session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -511,7 +512,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28694), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 3, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 3, + session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -523,7 +525,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28704), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -583,7 +585,7 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28672), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -595,7 +597,8 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28669), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 2, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, + session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -625,7 +628,7 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28671), { 0, 0, height }, { 33, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopRightSide, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); break; case 2: @@ -668,7 +671,7 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28671), { 0, 0, height }, { 33, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopRightSide, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); break; } @@ -695,7 +698,8 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28669), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 2, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -707,7 +711,7 @@ static void SteeplechaseTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28672), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } switch (direction) @@ -752,7 +756,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28676), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -764,7 +768,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28673), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -794,7 +798,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28675), { 0, 6, height }, { 33, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); break; case 2: @@ -837,7 +841,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28675), { 0, 6, height }, { 33, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); break; } @@ -864,7 +868,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28673), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -876,7 +880,7 @@ static void SteeplechaseTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28676), { 0, 6, height }, { 33, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } switch (direction) @@ -921,7 +925,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28685), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -933,7 +937,8 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28679), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 3, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 3, + session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -990,7 +995,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28680), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1002,7 +1007,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28686), { 6, 0, height }, { 20, 32, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 3, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 3, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1060,7 +1065,7 @@ static void SteeplechaseTrackBrakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -1090,7 +1095,7 @@ static void SteeplechaseTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(28729), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1104,7 +1109,7 @@ static void SteeplechaseTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(28737), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1209,7 +1214,8 @@ static void SteeplechaseTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(28732), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::LeftCorner, 0, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1223,7 +1229,8 @@ static void SteeplechaseTrackLeftEighthToDiag( session, direction, session.TrackColours.WithIndex(28740), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::RightCorner, 0, height, + session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -1261,7 +1268,7 @@ static void SteeplechaseTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(28713), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1275,7 +1282,7 @@ static void SteeplechaseTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(28721), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1380,7 +1387,8 @@ static void SteeplechaseTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(28716), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, + session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1394,7 +1402,7 @@ static void SteeplechaseTrackRightEighthToDiag( session, direction, session.TrackColours.WithIndex(28724), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -1580,7 +1588,7 @@ static void SteeplechaseTrackDiag25DegUp( session, direction, session.TrackColours.WithIndex(28770), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -1589,7 +1597,7 @@ static void SteeplechaseTrackDiag25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -1607,7 +1615,7 @@ static void SteeplechaseTrackDiag25DegUp( session, direction, session.TrackColours.WithIndex(28754), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -1616,7 +1624,7 @@ static void SteeplechaseTrackDiag25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -1753,7 +1761,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( session, direction, session.TrackColours.WithIndex(28762), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -1762,7 +1770,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -1780,7 +1788,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( session, direction, session.TrackColours.WithIndex(28746), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -1789,7 +1797,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -1926,7 +1934,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( session, direction, session.TrackColours.WithIndex(28766), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -1935,7 +1943,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -1953,7 +1961,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( session, direction, session.TrackColours.WithIndex(28750), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -1962,7 +1970,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -2099,7 +2107,7 @@ static void SteeplechaseTrackDiag25DegDown( session, direction, session.TrackColours.WithIndex(28772), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -2108,7 +2116,7 @@ static void SteeplechaseTrackDiag25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -2126,7 +2134,7 @@ static void SteeplechaseTrackDiag25DegDown( session, direction, session.TrackColours.WithIndex(28756), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: @@ -2135,7 +2143,7 @@ static void SteeplechaseTrackDiag25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 6, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; } @@ -2269,7 +2277,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( session, direction, session.TrackColours.WithIndex(28768), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -2278,7 +2286,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -2296,7 +2304,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( session, direction, session.TrackColours.WithIndex(28752), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, session.SupportColours); break; case 2: @@ -2305,7 +2313,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 4, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, session.SupportColours); break; } @@ -2443,7 +2451,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( session, direction, session.TrackColours.WithIndex(28764), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2452,7 +2460,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2470,7 +2478,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( session, direction, session.TrackColours.WithIndex(28748), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: @@ -2479,7 +2487,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( break; case 3: MetalBSupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomCorner, 0, height, + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } @@ -2515,7 +2523,7 @@ static void SteeplechaseTrackBlockBrakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); diff --git a/src/openrct2/paint/track/coaster/WildMouse.cpp b/src/openrct2/paint/track/coaster/WildMouse.cpp index bd2fa38c52..f86f4ea48f 100644 --- a/src/openrct2/paint/track/coaster/WildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WildMouse.cpp @@ -220,7 +220,7 @@ static void WildMouseTrackStation( session, direction, session.TrackColours.WithIndex(_wild_mouse_brakes_image_ids[direction]), { 0, 0, height }, { { 0, 0, height }, { 32, 20, 2 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp index c25cc1c415..839482da25 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp @@ -3622,7 +3622,7 @@ static void WoodenRCTrackLeftVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -3644,25 +3644,25 @@ static void WoodenRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23454), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23462), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23459), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23467), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3824,25 +3824,25 @@ static void WoodenRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23459), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23467), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23454), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23462), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3876,7 +3876,7 @@ static void WoodenRCTrackLeftVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { case 1: @@ -3927,7 +3927,7 @@ static void WoodenRCTrackRightVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -3941,25 +3941,25 @@ static void WoodenRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23483), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23475), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23478), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23470), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; } PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4081,25 +4081,25 @@ static void WoodenRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23478), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23470), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23483), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23475), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; } PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4125,7 +4125,7 @@ static void WoodenRCTrackRightVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { case 1: diff --git a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp index 7dc45548ff..38acd41538 100644 --- a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp +++ b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp @@ -45,7 +45,7 @@ static void PaintMiniHelicoptersTrackStation( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); diff --git a/src/openrct2/paint/track/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp index 54773209df..311a21d749 100644 --- a/src/openrct2/paint/track/gentle/MonorailCycles.cpp +++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp @@ -214,7 +214,7 @@ static void PaintMonorailCyclesStation( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); @@ -484,15 +484,15 @@ static void PaintMonorailCyclesTrackSBendLeft( { case 0: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height - 2, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, session.SupportColours); break; } } @@ -604,15 +604,16 @@ static void PaintMonorailCyclesTrackSBendRight( { case 0: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, + session.SupportColours); break; case 3: MetalASupportsPaintSetup( - session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); + session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } diff --git a/src/openrct2/paint/track/thrill/MagicCarpet.cpp b/src/openrct2/paint/track/thrill/MagicCarpet.cpp index f7bb4d6fd7..11e10dfdd8 100644 --- a/src/openrct2/paint/track/thrill/MagicCarpet.cpp +++ b/src/openrct2/paint/track/thrill/MagicCarpet.cpp @@ -227,16 +227,16 @@ static void PaintMagicCarpet( if (direction & 1) { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); } else { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); } const StationObject* stationObject = ride.GetStationObject(); diff --git a/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp index fb25813b0f..ce1afa65a7 100644 --- a/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp +++ b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp @@ -141,16 +141,16 @@ static void PaintSwingingInverterShip( if (direction & 1) { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); } else { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); } if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) diff --git a/src/openrct2/paint/track/thrill/SwingingShip.cpp b/src/openrct2/paint/track/thrill/SwingingShip.cpp index f2c1d8e1fb..15512d7d5d 100644 --- a/src/openrct2/paint/track/thrill/SwingingShip.cpp +++ b/src/openrct2/paint/track/thrill/SwingingShip.cpp @@ -172,9 +172,9 @@ static void PaintSwingingShip( else if (direction & 1) { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) { @@ -185,9 +185,9 @@ static void PaintSwingingShip( else { MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); MetalASupportsPaintSetup( - session, MetalSupportType::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); + session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) { diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 9357cb4957..de23476876 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1185,7 +1185,7 @@ void TrackPaintUtilDiagTilesPaint( void TrackPaintUtilDiagTilesPaintExtra( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, - const uint32_t sprites[4], MetalSupportType supportType) + const uint32_t sprites[4], MetalSupportGraphic supportType) { TrackPaintUtilDiagTilesPaint( session, thickness, height, direction, trackSequence, sprites, defaultDiagTileOffsets, defaultDiagBoundLengths, @@ -1777,7 +1777,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, } void TrackPaintUtilOnridePhotoPlatformPaint( - PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType) + PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType) { PaintAddImageAsParent(session, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); DrawSupportsSideBySide(session, direction, height, session.SupportColours, supportType); @@ -1910,7 +1910,7 @@ void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction dire direction), 0xFFFF, 0); } - MetalASupportsPaintSetup(session, MetalSupportType::Tubes, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetup(session, MetalSupportGraphic::Tubes, MetalSupportPlace::Centre, 0, height, session.SupportColours); if (direction != 2) { PaintUtilSetSegmentSupportHeight( diff --git a/src/openrct2/ride/TrackPaint.h b/src/openrct2/ride/TrackPaint.h index 23c90f7566..d8baefaced 100644 --- a/src/openrct2/ride/TrackPaint.h +++ b/src/openrct2/ride/TrackPaint.h @@ -486,7 +486,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, * @param supportType */ void TrackPaintUtilOnridePhotoPlatformPaint( - PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType); + PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType); void TrackPaintUtilOnridePhotoSmallPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement); @@ -520,7 +520,7 @@ inline void TrackPaintUtilDiagTilesPaint( void TrackPaintUtilDiagTilesPaintExtra( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, - const uint32_t sprites[4], MetalSupportType supportType); + const uint32_t sprites[4], MetalSupportGraphic supportType); void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence); diff --git a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h index ad0068e1d1..8266dda913 100644 --- a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h +++ b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h @@ -20,7 +20,7 @@ constexpr RideTypeDescriptor AlpineCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = OpenRCT2::AlpineRC::GetTrackPaintFunction, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf}, .ExtraTrackPieces = {TrackGroup::helixUpBankedHalf}, }), diff --git a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h index b17962c0a5..793bfc93a3 100644 --- a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h +++ b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor BobsleighCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionBobsleighRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve,TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes,TrackGroup::blockBrakes, TrackGroup::onridePhoto}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h index dd4c335c4b..46969719f3 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicMiniRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionJuniorRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::onridePhoto}, }), diff --git a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h index 8791d9f21e..ab79c04b69 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicStandUpRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionClassicStandUpRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h index bfe521e5b5..b54c037d8c 100644 --- a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CompactInvertedCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCompactInvertedRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h index 9bdc62a4b7..d92bc741f9 100644 --- a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes,TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::twist}, }), diff --git a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h index b9fe7caf4e..2c666e5373 100644 --- a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h @@ -22,13 +22,13 @@ constexpr RideTypeDescriptor FlyingRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionFlyingRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::quarterLoopUninvertedUp, TrackGroup::flyingLargeHalfLoopUninvertedUp, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::flyingLargeHalfLoopUninvertedDown, TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::stationEnd, TrackGroup::verticalLoop, TrackGroup::poweredLift}, }), .InvertedTrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionFlyingRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::quarterLoopInvertedDown, TrackGroup::flyingLargeHalfLoopInvertedDown, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::flyingLargeHalfLoopInvertedUp, TrackGroup::flyingHalfLoopInvertedUp}, }), diff --git a/src/openrct2/ride/rtd/coaster/GigaCoaster.h b/src/openrct2/ride/rtd/coaster/GigaCoaster.h index 4949eacfcd..185ba38b01 100644 --- a/src/openrct2/ride/rtd/coaster/GigaCoaster.h +++ b/src/openrct2/ride/rtd/coaster/GigaCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor GigaCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLatticeTriangleTrack, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::liftHillCable, TrackGroup::booster, TrackGroup::poweredLift, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeVertical, TrackGroup::curveVertical}, .ExtraTrackPieces = {TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/HyperTwister.h b/src/openrct2/ride/rtd/coaster/HyperTwister.h index 1ec3c3488f..76cf3b4248 100644 --- a/src/openrct2/ride/rtd/coaster/HyperTwister.h +++ b/src/openrct2/ride/rtd/coaster/HyperTwister.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor HyperTwisterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = { TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::booster, TrackGroup::poweredLift }, }), diff --git a/src/openrct2/ride/rtd/coaster/Hypercoaster.h b/src/openrct2/ride/rtd/coaster/Hypercoaster.h index 30067a20eb..55535f2b92 100644 --- a/src/openrct2/ride/rtd/coaster/Hypercoaster.h +++ b/src/openrct2/ride/rtd/coaster/Hypercoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor HypercoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::booster}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h index dc26cbc8ea..e3bae3807a 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedHairpinCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedHairpinRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h index 5d5e438bf0..aea298faf6 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedImpulseCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedImpulseRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeVertical, TrackGroup::curveVertical}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h index a2f95ab71e..c080facf52 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedRC, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::halfLoopLarge, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::booster}, }), diff --git a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h index da304fc0b6..d1e546f23c 100644 --- a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor JuniorRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionJuniorRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill,TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::onridePhoto}, }), diff --git a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h index e759da428a..d75e70dfa2 100644 --- a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LIMLaunchedRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLimLaunchedRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::corkscrewLarge}, .ExtraTrackPieces = {TrackGroup::slopeLong, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h index 7a5a7a2259..e83462a6cd 100644 --- a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::corkscrewUninverted, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes }, .ExtraTrackPieces = { TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::booster }, } @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD = .InvertedTrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionLayDownRCInverted, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::corkscrewInverted }, .ExtraTrackPieces = { TrackGroup::flyingHalfLoopInvertedUp, TrackGroup::stationEnd, TrackGroup::liftHill }, } diff --git a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h index eeb8f08c80..d723b64398 100644 --- a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LoopingRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLoopingRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::booster, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeVertical, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::slopeLong, TrackGroup::barrelRoll, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge,TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/MineRide.h b/src/openrct2/ride/rtd/coaster/MineRide.h index 3969670b70..80b1c06294 100644 --- a/src/openrct2/ride/rtd/coaster/MineRide.h +++ b/src/openrct2/ride/rtd/coaster/MineRide.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MineRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMineRide, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::onridePhoto}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h index 220446c058..d7399110ed 100644 --- a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHill}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHillCurved}, }), diff --git a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h index 9d22f064b6..a29a2c1589 100644 --- a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniSuspendedCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniSuspendedRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h index 99a71cfcbb..0d6795006a 100644 --- a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h @@ -21,13 +21,13 @@ constexpr RideTypeDescriptor MultiDimensionRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMultiDimensionRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted,TrackGroup::quarterLoopUninvertedUp, TrackGroup::quarterLoopUninvertedDown, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), .InvertedTrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMultiDimensionRC, - .supportType = MetalSupportType::TubesInverted, + .supportType = MetalSupportGraphic::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::quarterLoopInvertedUp, TrackGroup::quarterLoopInvertedDown}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h index f7b6922d04..d49f94f6ce 100644 --- a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h @@ -20,7 +20,7 @@ constexpr RideTypeDescriptor SingleRailRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = OpenRCT2::SingleRailRC::GetTrackPaintFunction, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeSteepLong, TrackGroup::halfLoopLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h index e8f568ff6a..0fcf179ee4 100644 --- a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpinningWildMouseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionWildMouse, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight,TrackGroup::stationEnd,TrackGroup::liftHill, TrackGroup::slope,TrackGroup::slopeLong,TrackGroup::curveVerySmall,TrackGroup::curveSmall, TrackGroup::brakes,TrackGroup::blockBrakes,TrackGroup::rotationControlToggle}, .ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve}, }), diff --git a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h index 2d9a47ba28..06c0b708df 100644 --- a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpiralRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHillCurved}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHill}, }), diff --git a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h index dfb7e806ae..3d53e10f91 100644 --- a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor StandUpRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionStandUpRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h index 3b74a6c9bb..dbdbceae0d 100644 --- a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteelWildMouseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionWildMouse, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {TrackGroup::rotationControlToggle}, }), diff --git a/src/openrct2/ride/rtd/coaster/Steeplechase.h b/src/openrct2/ride/rtd/coaster/Steeplechase.h index 374dcf0028..db083cc3e9 100644 --- a/src/openrct2/ride/rtd/coaster/Steeplechase.h +++ b/src/openrct2/ride/rtd/coaster/Steeplechase.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteeplechaseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSteeplechase, - .supportType = MetalSupportType::Stick, + .supportType = MetalSupportGraphic::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h index d14fee96ce..e16bb4aed7 100644 --- a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedSwingingCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSuspendedSwingingRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpUnbankedQuarter, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h index 22da3598e7..d4ed9ab02f 100644 --- a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor TwisterRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop}, }), diff --git a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h index a3593d35fc..2211ad9570 100644 --- a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h +++ b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor VerticalDropCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::halfLoopLarge, TrackGroup::brakeForDrop, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist}, }), diff --git a/src/openrct2/ride/rtd/coaster/WaterCoaster.h b/src/openrct2/ride/rtd/coaster/WaterCoaster.h index b28bc585c2..22c9351470 100644 --- a/src/openrct2/ride/rtd/coaster/WaterCoaster.h +++ b/src/openrct2/ride/rtd/coaster/WaterCoaster.h @@ -24,7 +24,7 @@ constexpr RideTypeDescriptor WaterCoasterRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionWaterRC, - .supportType = MetalSupportType::Fork, + .supportType = MetalSupportGraphic::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::onridePhoto, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeLong}, .icon = SPR_RIDE_CONSTRUCTION_RC_TRACK, diff --git a/src/openrct2/ride/rtd/gentle/CarRide.h b/src/openrct2/ride/rtd/gentle/CarRide.h index 50e05306d7..f3918b52c2 100644 --- a/src/openrct2/ride/rtd/gentle/CarRide.h +++ b/src/openrct2/ride/rtd/gentle/CarRide.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor CarRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCarRide, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::spinningTunnel}, .ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::rapids}, }), diff --git a/src/openrct2/ride/rtd/gentle/GhostTrain.h b/src/openrct2/ride/rtd/gentle/GhostTrain.h index 3eee2f83f6..640213dedf 100644 --- a/src/openrct2/ride/rtd/gentle/GhostTrain.h +++ b/src/openrct2/ride/rtd/gentle/GhostTrain.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor GhostTrainRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionGhostTrain, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::spinningTunnel}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MiniGolf.h b/src/openrct2/ride/rtd/gentle/MiniGolf.h index 1517c32702..41f0535d08 100644 --- a/src/openrct2/ride/rtd/gentle/MiniGolf.h +++ b/src/openrct2/ride/rtd/gentle/MiniGolf.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniGolfRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniGolf, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::miniGolfHole}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h index bedf552026..2dfd83fd98 100644 --- a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h +++ b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MiniHelicoptersRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniHelicopters, - .supportType = MetalSupportType::Stick, + .supportType = MetalSupportGraphic::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall}, .ExtraTrackPieces = {TrackGroup::spinningTunnel}, }), diff --git a/src/openrct2/ride/rtd/gentle/MonorailCycles.h b/src/openrct2/ride/rtd/gentle/MonorailCycles.h index 12b1629c96..8c68e942e7 100644 --- a/src/openrct2/ride/rtd/gentle/MonorailCycles.h +++ b/src/openrct2/ride/rtd/gentle/MonorailCycles.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailCyclesRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMonorailCycles, - .supportType = MetalSupportType::Stick, + .supportType = MetalSupportGraphic::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h index 11a32d8a24..84a4ee06f6 100644 --- a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h +++ b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonsterTrucksRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCarRide, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::rapids}, .ExtraTrackPieces = {TrackGroup::spinningTunnel}, }), diff --git a/src/openrct2/ride/rtd/transport/Chairlift.h b/src/openrct2/ride/rtd/transport/Chairlift.h index a6a62c8a3f..6b23c0af9a 100644 --- a/src/openrct2/ride/rtd/transport/Chairlift.h +++ b/src/openrct2/ride/rtd/transport/Chairlift.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor ChairliftRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionChairlift, - .supportType = MetalSupportType::Truss, + .supportType = MetalSupportGraphic::Truss, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/transport/Monorail.h b/src/openrct2/ride/rtd/transport/Monorail.h index c825eefc7a..e7000c698c 100644 --- a/src/openrct2/ride/rtd/transport/Monorail.h +++ b/src/openrct2/ride/rtd/transport/Monorail.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMonorail, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h index 31e69a04cd..11f31730e5 100644 --- a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h +++ b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedMonorailRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSuspendedMonorail, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/water/DinghySlide.h b/src/openrct2/ride/rtd/water/DinghySlide.h index 356e8218e7..bcc859c43e 100644 --- a/src/openrct2/ride/rtd/water/DinghySlide.h +++ b/src/openrct2/ride/rtd/water/DinghySlide.h @@ -23,7 +23,7 @@ constexpr RideTypeDescriptor DinghySlideRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionDinghySlide, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve }, .ExtraTrackPieces = {}, .icon = SPR_RIDE_CONSTRUCTION_U_SHAPED_TRACK, @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor DinghySlideRTD = }, { .Drawer = GetTrackPaintFunctionDinghySlideCovered, - .supportType = MetalSupportType::Tubes, + .supportType = MetalSupportGraphic::Tubes, .EnabledTrackPieces = {OpenRCT2::TrackElemType::Flat, OpenRCT2::TrackElemType::Up25, OpenRCT2::TrackElemType::Up60, OpenRCT2::TrackElemType::FlatToUp25, OpenRCT2::TrackElemType::Up25ToUp60, OpenRCT2::TrackElemType::Up60ToUp25, OpenRCT2::TrackElemType::Up25ToFlat, OpenRCT2::TrackElemType::Down25, OpenRCT2::TrackElemType::Down60, OpenRCT2::TrackElemType::FlatToDown25, OpenRCT2::TrackElemType::Down25ToDown60, OpenRCT2::TrackElemType::Down60ToDown25, OpenRCT2::TrackElemType::Down25ToFlat, OpenRCT2::TrackElemType::LeftQuarterTurn5Tiles, OpenRCT2::TrackElemType::RightQuarterTurn5Tiles, OpenRCT2::TrackElemType::SBendLeft, OpenRCT2::TrackElemType::SBendRight, OpenRCT2::TrackElemType::LeftQuarterTurn3Tiles,OpenRCT2::TrackElemType::RightQuarterTurn3Tiles}, .ExtraTrackPieces = {}, .icon = SPR_RIDE_CONSTRUCTION_O_SHAPED_TRACK, diff --git a/src/openrct2/ride/rtd/water/LogFlume.h b/src/openrct2/ride/rtd/water/LogFlume.h index 9321842603..fcb67a6ba4 100644 --- a/src/openrct2/ride/rtd/water/LogFlume.h +++ b/src/openrct2/ride/rtd/water/LogFlume.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LogFlumeRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLogFlume, - .supportType = MetalSupportType::Boxed, + .supportType = MetalSupportGraphic::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::onridePhoto, TrackGroup::logFlumeReverser, TrackGroup::slopeSteepDown}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/water/SubmarineRide.h b/src/openrct2/ride/rtd/water/SubmarineRide.h index 0b3aaa3340..d51b6da755 100644 --- a/src/openrct2/ride/rtd/water/SubmarineRide.h +++ b/src/openrct2/ride/rtd/water/SubmarineRide.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor SubmarineRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSubmarineRide, - .supportType = MetalSupportType::Stick, + .supportType = MetalSupportGraphic::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::curveVerySmall, TrackGroup::curveSmall}, .ExtraTrackPieces = {}, }), From dc3c22b820edd59d57d61d02b8c67eff44e7b2c3 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 17 Aug 2024 00:07:57 +0200 Subject: [PATCH 2/6] Introduce deduplicated MetalSupportType --- src/openrct2/paint/support/MetalSupports.cpp | 64 ++-- src/openrct2/paint/support/MetalSupports.h | 69 +++- src/openrct2/paint/track/Support.h | 4 +- .../paint/track/coaster/AlpineCoaster.cpp | 325 ++++++++---------- .../coaster/ClassicStandUpRollerCoaster.cpp | 39 ++- .../track/coaster/CorkscrewRollerCoaster.cpp | 246 ++++++++----- .../track/coaster/HeartlineTwisterCoaster.cpp | 2 +- .../track/coaster/JuniorRollerCoaster.cpp | 301 +++++++--------- src/openrct2/paint/track/coaster/MineRide.cpp | 2 +- .../paint/track/coaster/MineTrainCoaster.cpp | 2 +- .../paint/track/coaster/MiniRollerCoaster.cpp | 2 +- .../track/coaster/MiniSuspendedCoaster.cpp | 2 +- .../paint/track/coaster/Steeplechase.cpp | 2 +- .../paint/track/coaster/WildMouse.cpp | 2 +- .../paint/track/gentle/MiniHelicopters.cpp | 2 +- .../paint/track/gentle/MonorailCycles.cpp | 2 +- src/openrct2/ride/TrackPaint.cpp | 4 +- src/openrct2/ride/TrackPaint.h | 4 +- src/openrct2/ride/rtd/coaster/AlpineCoaster.h | 2 +- .../ride/rtd/coaster/BobsleighCoaster.h | 2 +- .../rtd/coaster/ClassicMiniRollerCoaster.h | 2 +- .../rtd/coaster/ClassicStandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/CompactInvertedCoaster.h | 2 +- .../ride/rtd/coaster/CorkscrewRollerCoaster.h | 2 +- .../ride/rtd/coaster/FlyingRollerCoaster.h | 4 +- src/openrct2/ride/rtd/coaster/GigaCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/HyperTwister.h | 2 +- src/openrct2/ride/rtd/coaster/Hypercoaster.h | 2 +- .../ride/rtd/coaster/InvertedHairpinCoaster.h | 2 +- .../ride/rtd/coaster/InvertedImpulseCoaster.h | 2 +- .../ride/rtd/coaster/InvertedRollerCoaster.h | 2 +- .../ride/rtd/coaster/JuniorRollerCoaster.h | 2 +- .../rtd/coaster/LIMLaunchedRollerCoaster.h | 2 +- .../ride/rtd/coaster/LayDownRollerCoaster.h | 4 +- .../ride/rtd/coaster/LoopingRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/MineRide.h | 2 +- .../ride/rtd/coaster/MiniRollerCoaster.h | 2 +- .../ride/rtd/coaster/MiniSuspendedCoaster.h | 2 +- .../rtd/coaster/MultiDimensionRollerCoaster.h | 4 +- .../rtd/coaster/SingleRailRollerCoaster.h | 2 +- .../ride/rtd/coaster/SpinningWildMouse.h | 2 +- .../ride/rtd/coaster/SpiralRollerCoaster.h | 2 +- .../ride/rtd/coaster/StandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/SteelWildMouse.h | 2 +- src/openrct2/ride/rtd/coaster/Steeplechase.h | 2 +- .../rtd/coaster/SuspendedSwingingCoaster.h | 2 +- .../ride/rtd/coaster/TwisterRollerCoaster.h | 2 +- .../ride/rtd/coaster/VerticalDropCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/WaterCoaster.h | 2 +- src/openrct2/ride/rtd/gentle/CarRide.h | 2 +- src/openrct2/ride/rtd/gentle/GhostTrain.h | 2 +- src/openrct2/ride/rtd/gentle/MiniGolf.h | 2 +- .../ride/rtd/gentle/MiniHelicopters.h | 2 +- src/openrct2/ride/rtd/gentle/MonorailCycles.h | 2 +- src/openrct2/ride/rtd/gentle/MonsterTrucks.h | 2 +- src/openrct2/ride/rtd/transport/Chairlift.h | 2 +- src/openrct2/ride/rtd/transport/Monorail.h | 2 +- .../ride/rtd/transport/SuspendedMonorail.h | 2 +- src/openrct2/ride/rtd/water/DinghySlide.h | 4 +- src/openrct2/ride/rtd/water/LogFlume.h | 2 +- src/openrct2/ride/rtd/water/SubmarineRide.h | 2 +- 61 files changed, 620 insertions(+), 548 deletions(-) diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index 84e979da40..7e65d39a52 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -216,22 +216,13 @@ static constexpr MetalSupportPlace kMetalSupportPlacementRotated[][kNumOrthogona MetalSupportPlace::TopRightSide }, }; -constexpr uint8_t MetalSupportGraphicCount = 13; -constexpr MetalSupportGraphic kMetalSupportGraphicRotated[MetalSupportGraphicCount][kNumOrthogonalDirections] = { +constexpr MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount][kNumOrthogonalDirections] = { { MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes }, { MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt }, - { MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork }, { MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed }, { MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt }, - { MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick }, - { MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick, - MetalSupportGraphic::ThickAlt }, { MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred }, - { MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred, - MetalSupportGraphic::Thick }, - { MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, - MetalSupportGraphic::ThickCentred }, { MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss }, { MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted }, @@ -433,13 +424,21 @@ bool MetalASupportsPaintSetup( return true; } -bool MetalASupportsPaintSetupRotated( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, - int32_t special, int32_t height, ImageId imageTemplate) +bool MetalASupportsPaintSetup( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate) { - supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction]; + auto supportGraphic = RotateMetalSupportGraphic(supportType, 0); + return MetalASupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate); +} + +bool MetalASupportsPaintSetupRotated( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, + int32_t height, ImageId imageTemplate) +{ + auto supportGraphic = RotateMetalSupportGraphic(supportType, direction); placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction]; - return MetalASupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate); + return MetalASupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate); } /** @@ -625,29 +624,42 @@ bool MetalBSupportsPaintSetup( return false; // AND } -bool MetalBSupportsPaintSetupRotated( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, - int32_t special, int32_t height, ImageId imageTemplate) +bool MetalBSupportsPaintSetup( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate) { - supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction]; + auto supportGraphic = RotateMetalSupportGraphic(supportType, 0); + return MetalBSupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate); +} + +bool MetalBSupportsPaintSetupRotated( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, + int32_t height, ImageId imageTemplate) +{ + auto supportGraphic = RotateMetalSupportGraphic(supportType, direction); placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction]; - return MetalBSupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate); + return MetalBSupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate); +} + +MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction) +{ + return kMetalSupportGraphicRotated[EnumValue(supportType)][direction]; } void DrawSupportsSideBySide( - PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special) + PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType supportType, int32_t special) { - type = kMetalSupportGraphicRotated[EnumValue(type)][direction]; + auto graphic = RotateMetalSupportGraphic(supportType, direction); if (direction & 1) { - MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour); - MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour); + MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::TopRightSide, special, height, colour); + MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::BottomLeftSide, special, height, colour); } else { - MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopLeftSide, special, height, colour); - MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomRightSide, special, height, colour); + MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::TopLeftSide, special, height, colour); + MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::BottomRightSide, special, height, colour); } } diff --git a/src/openrct2/paint/support/MetalSupports.h b/src/openrct2/paint/support/MetalSupports.h index 459dfd96e0..db6748944e 100644 --- a/src/openrct2/paint/support/MetalSupports.h +++ b/src/openrct2/paint/support/MetalSupports.h @@ -14,8 +14,56 @@ #include -// There are 13 types of metal supports. A graphic showing all of them is available here: +using track_type_t = uint16_t; + +enum class MetalSupportType +{ + /** + * Used by the Steel Twister, Looping RC, and other rides. + */ + Tubes = 0, + + /** + * Used by the Junior RC and other rides. + */ + Fork = 1, + + /** + * Used by the vertical roller coasters, the Log Flume and other rides. + */ + Boxed = 2, + + /** + * Used by the Steeplechase. + */ + Stick = 3, + + /** + * Used for the Looping Roller Coaster’s loop, and only for that specific part. + */ + Thick = 4, + + /** + * Used by the chairlift. + */ + Truss = 5, + + /** + * Used by inverted rcs like the flying, lay-down, compact inverted. + * Mostly the same as `Tubes`, but with a thinner crossbeam. + */ + TubesInverted = 6, + + /** + * Does not seem to be used in RCT2, but it was used in RCT1 for one of the path support types. + */ + BoxedCoated = 7, +}; +constexpr uint8_t kMetalSupportTypeCount = 8; + +// There are 13 types of metal support graphics, including rotated versions. A graphic showing all of them is available here: // https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png +// TODO Make this internal to MetalSupports.cpp enum class MetalSupportGraphic : uint8_t { /** @@ -97,17 +145,26 @@ struct PaintSession; bool MetalASupportsPaintSetup( PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate); +/** @deprecated */ +bool MetalASupportsPaintSetup( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate); bool MetalASupportsPaintSetupRotated( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, - int32_t special, int32_t height, ImageId imageTemplate); + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, + int32_t height, ImageId imageTemplate); bool MetalBSupportsPaintSetup( PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate); +/** @deprecated */ +bool MetalBSupportsPaintSetup( + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate); bool MetalBSupportsPaintSetupRotated( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction, - int32_t special, int32_t height, ImageId imageTemplate); + PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, + int32_t height, ImageId imageTemplate); +MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction); void DrawSupportsSideBySide( - PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special = 0); + PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0); bool PathPoleSupportsPaintSetup( PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate, const FootpathPaintInfo& pathPaintInfo); diff --git a/src/openrct2/paint/track/Support.h b/src/openrct2/paint/track/Support.h index c29c8304d2..346ca30b52 100644 --- a/src/openrct2/paint/track/Support.h +++ b/src/openrct2/paint/track/Support.h @@ -20,7 +20,7 @@ struct SupportType { uint8_t generic{}; WoodenSupportType wooden; - MetalSupportGraphic metal; + MetalSupportType metal; }; explicit constexpr SupportType() @@ -37,7 +37,7 @@ struct SupportType { } - constexpr SupportType(MetalSupportGraphic _metal) + constexpr SupportType(MetalSupportType _metal) : metal(_metal) { } diff --git a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp index c3be3ad852..bc0722347a 100644 --- a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp @@ -54,9 +54,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } } else @@ -78,9 +77,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -115,7 +113,7 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][2]), { 0, 0, height - 2 }, { { 0, 2, height }, { 32, 28, 2 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); @@ -153,9 +151,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); } } else @@ -185,9 +182,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -234,9 +230,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } } else @@ -266,9 +261,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -315,9 +309,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } } else @@ -347,9 +340,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -416,9 +408,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -494,9 +485,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height, + session.SupportColours); switch (direction) { case 2: @@ -557,9 +548,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -706,9 +696,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height, + session.SupportColours); switch (direction) { case 2: @@ -769,9 +759,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -936,9 +925,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2201,9 +2189,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight( @@ -2246,9 +2233,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight( @@ -2305,9 +2291,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -2357,9 +2342,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -2409,9 +2393,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -2461,9 +2444,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -2535,9 +2517,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight( @@ -4099,9 +4080,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4180,9 +4160,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 2, height, + session.SupportColours); switch (direction) { case 2: @@ -4246,9 +4226,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4398,9 +4377,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 1, height, + session.SupportColours); switch (direction) { case 2: @@ -4461,9 +4440,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4628,9 +4606,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4811,9 +4788,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -4858,9 +4834,9 @@ namespace OpenRCT2::AlpineRC { 6, 0, height }, { 20, 32, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height, + session.SupportColours); switch (direction) { case 2: @@ -4913,9 +4889,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -5038,9 +5013,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -5187,9 +5161,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height, + session.SupportColours); switch (direction) { case 2: @@ -5242,9 +5216,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -5391,9 +5364,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 8, height, + session.SupportColours); switch (direction) { case 0: @@ -5462,9 +5435,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -5581,9 +5553,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -5636,9 +5607,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -5755,9 +5725,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -5813,9 +5782,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 5, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -5894,9 +5862,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 9, height, + session.SupportColours); switch (direction) { case 2: @@ -5943,9 +5911,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 5, height, + session.SupportColours); switch (direction) { case 0: @@ -6029,9 +5997,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -6082,9 +6049,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 5, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -6163,9 +6129,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 9, height, + session.SupportColours); switch (direction) { case 0: @@ -6212,9 +6178,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 5, height, + session.SupportColours); switch (direction) { case 2: @@ -6298,9 +6264,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -6377,9 +6342,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -6529,9 +6493,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 9, height, + session.SupportColours); switch (direction) { case 2: @@ -6578,9 +6542,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 3, height, + session.SupportColours); switch (direction) { case 0: @@ -6735,9 +6699,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -6787,9 +6750,8 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -6995,9 +6957,9 @@ namespace OpenRCT2::AlpineRC { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 3, height, + session.SupportColours); switch (direction) { case 2: @@ -7226,9 +7188,8 @@ namespace OpenRCT2::AlpineRC } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight( @@ -7269,9 +7230,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -7316,9 +7276,9 @@ namespace OpenRCT2::AlpineRC { 6, 0, height }, { { 0, 6, height - 6 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, - height - 6, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 10, height - 6, + session.SupportColours); switch (direction) { case 2: @@ -7374,9 +7334,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -7421,9 +7380,9 @@ namespace OpenRCT2::AlpineRC { 6, 0, height }, { { 0, 6, height - 6 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, - height - 6, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 10, height - 6, + session.SupportColours); switch (direction) { case 0: @@ -7476,9 +7435,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { { 0, 6, height - 6 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height - 6, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height - 6, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd); @@ -7526,9 +7484,9 @@ namespace OpenRCT2::AlpineRC { 6, 0, height }, { 20, 32, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 5, height, + session.SupportColours); switch (direction) { case 2: @@ -7581,9 +7539,8 @@ namespace OpenRCT2::AlpineRC { 0, 6, height }, { { 0, 6, height - 6 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8, - height - 6, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height - 6, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd); @@ -7631,9 +7588,9 @@ namespace OpenRCT2::AlpineRC { 6, 0, height }, { 20, 32, 3 }); break; } - MetalASupportsPaintSetup( - session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 5, height, + session.SupportColours); switch (direction) { case 0: diff --git a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp index 7b4115c43a..cb6ea01d14 100644 --- a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp @@ -158,7 +158,8 @@ static void classicStandUpRCTrackFlatToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -182,7 +183,8 @@ static void classicStandUpRCTrackFlatToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -224,7 +226,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(map[direction]), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 0: @@ -363,7 +366,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(map[direction]), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 1 || direction == 0) { PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat); @@ -409,7 +413,8 @@ static void classicStandUpRCTrackLeftBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -440,7 +445,8 @@ static void classicStandUpRCTrackRightBankTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -471,7 +477,8 @@ static void classicStandUpRCTrack25DegUpToLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -502,7 +509,8 @@ static void classicStandUpRCTrack25DegUpToRightBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) @@ -565,7 +573,8 @@ static void classicStandUpRCTrackLeftBank( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -606,7 +615,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -759,7 +769,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -928,7 +939,8 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(imageId), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 0: @@ -982,7 +994,8 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(imageId), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 1) { PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat); diff --git a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp index 2fc0a19b82..fe74a80a6c 100644 --- a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp @@ -88,7 +88,8 @@ static void CorkscrewRCTrackFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } } else @@ -110,7 +111,8 @@ static void CorkscrewRCTrackFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -185,7 +187,8 @@ static void CorkscrewRCTrack25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); } } else @@ -215,7 +218,8 @@ static void CorkscrewRCTrack25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -262,7 +266,8 @@ static void CorkscrewRCTrack60DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 32, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 32, height, session.SupportColours); } } else @@ -292,7 +297,8 @@ static void CorkscrewRCTrack60DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 32, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 32, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -339,7 +345,8 @@ static void CorkscrewRCTrackFlatTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } } else @@ -369,7 +376,8 @@ static void CorkscrewRCTrackFlatTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -422,7 +430,8 @@ static void CorkscrewRCTrack25DegUpTo60DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); } } else @@ -458,7 +467,8 @@ static void CorkscrewRCTrack25DegUpTo60DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -511,7 +521,8 @@ static void CorkscrewRCTrack60DegUpTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 20, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours); } } else @@ -547,7 +558,8 @@ static void CorkscrewRCTrack60DegUpTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 20, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -594,7 +606,8 @@ static void CorkscrewRCTrack25DegUpToFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } } else @@ -624,7 +637,8 @@ static void CorkscrewRCTrack25DegUpToFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } } if (direction == 0 || direction == 3) @@ -718,7 +732,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -865,7 +880,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 2: @@ -933,7 +949,8 @@ static void CorkscrewRCTrackFlatToLeftBank( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -976,7 +993,8 @@ static void CorkscrewRCTrackFlatToRightBank( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -1019,7 +1037,8 @@ static void CorkscrewRCTrackLeftBankToFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -1062,7 +1081,8 @@ static void CorkscrewRCTrackRightBankToFlat( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -1103,7 +1123,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -1253,7 +1274,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 2: @@ -1322,7 +1344,8 @@ static void CorkscrewRCTrackLeftBankTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -1372,7 +1395,8 @@ static void CorkscrewRCTrackRightBankTo25DegUp( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -1422,7 +1446,8 @@ static void CorkscrewRCTrack25DegUpToLeftBank( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -1472,7 +1497,8 @@ static void CorkscrewRCTrack25DegUpToRightBank( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } if (direction == 0 || direction == 3) { @@ -1548,7 +1574,8 @@ static void CorkscrewRCTrackLeftBank( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -1594,7 +1621,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -1736,7 +1764,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); switch (direction) { case 2: @@ -1790,7 +1819,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -1931,7 +1961,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); switch (direction) { case 0: @@ -2005,7 +2036,8 @@ static void CorkscrewRCTrackSBendLeft( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2116,7 +2148,8 @@ static void CorkscrewRCTrackSBendLeft( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -2170,7 +2203,8 @@ static void CorkscrewRCTrackSBendRight( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2281,7 +2315,8 @@ static void CorkscrewRCTrackSBendRight( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -2640,7 +2675,8 @@ static void CorkscrewRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(16578), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -2829,7 +2865,8 @@ static void CorkscrewRCTrackRightVerticalLoop( session, direction, session.TrackColours.WithIndex(16585), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); switch (direction) { case 1: @@ -2877,7 +2914,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -2953,7 +2991,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 2: @@ -3019,7 +3058,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -3098,7 +3138,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 2: @@ -3157,7 +3198,8 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(16539), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -3198,7 +3240,8 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(16538), { 6, 0, height }, { 20, 32, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); switch (direction) { case 2: @@ -3248,7 +3291,8 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp( session, direction, session.TrackColours.WithIndex(16536), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -3366,7 +3410,8 @@ static void CorkscrewRCTrackHalfLoopUp( session, direction, session.TrackColours.WithIndex(16609), { 0, 6, height }, { 32, 20, 7 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -3628,7 +3673,8 @@ static void CorkscrewRCTrackRightCorkscrewUp( { { 0, 6, height + 4 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -3770,7 +3816,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -3849,7 +3896,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( { { 6, 0, height + 8 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); switch (direction) { case 2: @@ -3896,7 +3944,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); switch (direction) { case 0: @@ -3980,7 +4029,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -4032,7 +4082,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4111,7 +4162,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); switch (direction) { case 0: @@ -4158,7 +4210,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); switch (direction) { case 2: @@ -4242,7 +4295,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( { { 0, 6, height + 8 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -4324,7 +4378,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4474,7 +4529,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( { { 6, 0, height + 8 }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); switch (direction) { case 2: @@ -4521,7 +4577,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); switch (direction) { case 0: @@ -4675,7 +4732,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -4727,7 +4785,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -4876,7 +4935,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); switch (direction) { case 0: @@ -4923,7 +4983,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( { { 6, 0, height }, { 20, 32, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); switch (direction) { case 2: @@ -5078,7 +5139,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( { { 0, 6, height + 8 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); @@ -5258,7 +5320,8 @@ static void CorkscrewRCTrackBrakes( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -5660,7 +5723,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -5824,7 +5888,8 @@ static void CorkscrewRCTrackRightEighthToDiag( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -6006,7 +6071,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( { { 0, 6, height }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -6170,7 +6236,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( { { 0, 27, height }, { 32, 1, 26 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -9826,7 +9893,8 @@ static void CorkscrewRCTrackBlockBrakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(kCorkscrewRcBlockBrakeImages[direction][isClosed]), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9870,7 +9938,8 @@ static void CorkscrewRCTrackBooster( } if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -9903,7 +9972,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( session, direction, session.TrackColours.WithIndex(26977), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -9976,7 +10046,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintSegment::topRightSide, PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { @@ -10018,7 +10089,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( session, direction, session.TrackColours.WithIndex(26989), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -10091,7 +10163,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { @@ -10141,7 +10214,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -10199,7 +10273,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( session, direction, session.TrackColours.WithIndex(26978), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -10256,7 +10331,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintSegment::topRightSide, PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { @@ -10314,7 +10390,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( session, direction, session.TrackColours.WithIndex(26990), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -10364,7 +10441,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( session, direction, session.TrackColours.WithIndex(26977), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -10484,7 +10562,8 @@ static void LayDownRCTrackRightFlyerTwistUp( session, direction, session.TrackColours.WithIndex(26989), { 0, 6, height }, { 32, 20, 3 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -10602,7 +10681,8 @@ static void LayDownRCTrackFlyerHalfLoopUp( session, direction, session.TrackColours.WithIndex(16609), { 0, 6, height }, { 32, 20, 7 }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -10751,7 +10831,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( direction), 0xFFFF, 0); } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction != 2) { PaintUtilSetSegmentSupportHeight( @@ -10878,7 +10959,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp( { { 0, 6, height + 4 }, { 32, 20, 3 } }); break; } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); diff --git a/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp index e43848a29c..6d1368fd15 100644 --- a/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp +++ b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp @@ -117,7 +117,7 @@ static void HeartlineTwisterRCTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp index 37c2770091..4f9a574376 100644 --- a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp @@ -1865,9 +1865,8 @@ static void JuniorRCPaintTrackFlat( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); } PaintUtilSetSegmentSupportHeight( @@ -1929,7 +1928,7 @@ static void JuniorRCPaintStation( PaintAddImageAsChild(session, imageId, { 6, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); @@ -2064,14 +2063,13 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - supportHeight, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, supportHeight, session.SupportColours); break; case 6: - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, - supportHeight, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 0, supportHeight, + session.SupportColours); break; } @@ -2373,14 +2371,13 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - supportHeight, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, supportHeight, session.SupportColours); break; case 6: - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, - supportHeight, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 0, supportHeight, + session.SupportColours); break; } @@ -2839,14 +2836,14 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, - (direction == 0 || direction == 3) ? 10 : 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, (direction == 0 || direction == 3) ? 10 : 8, + height, session.SupportColours); break; case 6: - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, - supportSpecial[direction], height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), supportSpecial[direction], + height, session.SupportColours); break; } @@ -2944,14 +2941,14 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, - supportSpecial[direction], height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, supportSpecial[direction], height, + session.SupportColours); break; case 6: - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 8, height, + session.SupportColours); break; } @@ -3663,15 +3660,13 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup( if (trackSequence == 0) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours); } else if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 6, height, session.SupportColours); } if (direction == 0 && trackSequence == 0) @@ -3736,15 +3731,13 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup( if (trackSequence == 0) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } else if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 2, height, session.SupportColours); } if (direction == 0 && trackSequence == 0) @@ -3841,15 +3834,13 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( if (trackSequence == 0) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); } else if (trackSequence == 6) { - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 7, height, session.SupportColours); } if (direction == 0 && trackSequence == 0) @@ -3948,15 +3939,13 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( if (trackSequence == 0) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 7, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); } else if (trackSequence == 6) { - MetalASupportsPaintSetup( - session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 1, height, session.SupportColours); } if (direction == 0 && trackSequence == 0) @@ -4156,9 +4145,8 @@ static void JuniorRCLeftEighthToDiagPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: if (direction == 0) @@ -4229,9 +4217,8 @@ static void JuniorRCRightEighthToDiagPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: if (direction == 0) @@ -4401,9 +4388,8 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: if (direction == 0) @@ -4555,9 +4541,8 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( switch (trackSequence) { case 0: - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: if (direction == 0) @@ -4655,9 +4640,8 @@ static void JuniorRCTrackDiagBrakes( if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4675,9 +4659,8 @@ static void JuniorRCTrackDiagBlockBrakes( if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4697,9 +4680,8 @@ static void JuniorRCPaintTrackDiag25DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4719,9 +4701,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4742,9 +4723,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height + 6, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height + 6, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4764,9 +4744,8 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4787,9 +4766,8 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height + 13, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 13, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4809,9 +4787,8 @@ static void JuniorRCPaintTrackDiag25DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4831,9 +4808,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4854,9 +4830,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height + 7, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 7, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4876,9 +4851,8 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4899,9 +4873,8 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4926,9 +4899,8 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup( } if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4953,9 +4925,8 @@ static void JuniorRCDiagFlatToRightBankPaintSetup( } if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4980,9 +4951,8 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup( } if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5007,9 +4977,8 @@ static void JuniorRCDiagRightBankToFlatPaintSetup( } if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5034,9 +5003,8 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5061,9 +5029,8 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5088,9 +5055,8 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5115,9 +5081,8 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5142,9 +5107,8 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5169,9 +5133,8 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5196,9 +5159,8 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5223,9 +5185,8 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( } if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5259,9 +5220,8 @@ static void JuniorRCDiagLeftBankPaintSetup( if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5281,9 +5241,8 @@ static void JuniorRCDiagRightBankPaintSetup( if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0, - height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5352,9 +5311,9 @@ static void JuniorRCPaintTrack60DegUp( static constexpr int8_t support[4] = { 35, 29, 25, 32 }; if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, - support[direction & 3], height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction & 3], height, + session.SupportColours); } PaintUtilSetSegmentSupportHeight( @@ -5438,9 +5397,9 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp( static constexpr int8_t support[4] = { 12, 12, 12, 14 }; if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, - support[direction & 3], height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction & 3], height, + session.SupportColours); } PaintUtilSetSegmentSupportHeight( @@ -5502,9 +5461,8 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height, - session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours); } PaintUtilSetSegmentSupportHeight( @@ -5535,9 +5493,8 @@ static void JuniorRCPaintTrackDiag60DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 36, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 36, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5558,9 +5515,8 @@ static void JuniorRCPaintTrackDiag60DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 28, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 28, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5581,9 +5537,8 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 16, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 16, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5614,9 +5569,8 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 21, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 21, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5647,9 +5601,8 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 17, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 17, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5670,9 +5623,8 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown( if (trackSequence == 3) { - MetalBSupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8, - height, session.SupportColours); + MetalBSupportsPaintSetupRotated( + session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5758,9 +5710,9 @@ static void JuniorRCFlatTo60DegUpPaintSetup( static constexpr int8_t support[4] = { 12, 12, 12, 14 }; if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, - support[direction], height - 7, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction], height - 7, + session.SupportColours); } PaintUtilSetSegmentSupportHeight( @@ -5820,9 +5772,8 @@ static void JuniorRC60DegUpToFlatPaintSetup( if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - MetalASupportsPaintSetup( - session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, - height - 5, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height - 5, session.SupportColours); } PaintUtilSetSegmentSupportHeight( diff --git a/src/openrct2/paint/track/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp index 5632ccdc66..55d1e3fb2d 100644 --- a/src/openrct2/paint/track/coaster/MineRide.cpp +++ b/src/openrct2/paint/track/coaster/MineRide.cpp @@ -61,7 +61,7 @@ static void MineRideTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp index e7353ba85f..59b6dc91e2 100644 --- a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp @@ -161,7 +161,7 @@ static void MineTrainRCTrackStation( session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 0, height }, { { 0, 0, height }, { 32, 20, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp index eeef40b2ae..9800ae94b7 100644 --- a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp @@ -146,7 +146,7 @@ static void MiniRCTrackStation( PaintAddImageAsParentRotated( session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp index c1f50b93fa..41b1e02a22 100644 --- a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp @@ -108,7 +108,7 @@ static void MiniSuspendedRCTrackStation( PaintAddImageAsChildRotated( session, direction, session.SupportColours.WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { { 0, 2, height }, { 32, 20, 1 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp index ca5b868318..ee24d4d73a 100644 --- a/src/openrct2/paint/track/coaster/Steeplechase.cpp +++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp @@ -97,7 +97,7 @@ static void SteeplechaseTrackStation( PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 6, height }, { { 0, 0, height }, { 32, 20, 3 } }); - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/coaster/WildMouse.cpp b/src/openrct2/paint/track/coaster/WildMouse.cpp index f86f4ea48f..bd2fa38c52 100644 --- a/src/openrct2/paint/track/coaster/WildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WildMouse.cpp @@ -220,7 +220,7 @@ static void WildMouseTrackStation( session, direction, session.TrackColours.WithIndex(_wild_mouse_brakes_image_ids[direction]), { 0, 0, height }, { { 0, 0, height }, { 32, 20, 2 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); diff --git a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp index 38acd41538..7dc45548ff 100644 --- a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp +++ b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp @@ -45,7 +45,7 @@ static void PaintMiniHelicoptersTrackStation( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); diff --git a/src/openrct2/paint/track/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp index 311a21d749..f7e0888d90 100644 --- a/src/openrct2/paint/track/gentle/MonorailCycles.cpp +++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp @@ -214,7 +214,7 @@ static void PaintMonorailCyclesStation( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } }); } - DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed); + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index de23476876..cad7b77609 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1185,7 +1185,7 @@ void TrackPaintUtilDiagTilesPaint( void TrackPaintUtilDiagTilesPaintExtra( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, - const uint32_t sprites[4], MetalSupportGraphic supportType) + const uint32_t sprites[4], MetalSupportType supportType) { TrackPaintUtilDiagTilesPaint( session, thickness, height, direction, trackSequence, sprites, defaultDiagTileOffsets, defaultDiagBoundLengths, @@ -1777,7 +1777,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, } void TrackPaintUtilOnridePhotoPlatformPaint( - PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType) + PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType) { PaintAddImageAsParent(session, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 }); DrawSupportsSideBySide(session, direction, height, session.SupportColours, supportType); diff --git a/src/openrct2/ride/TrackPaint.h b/src/openrct2/ride/TrackPaint.h index d8baefaced..23c90f7566 100644 --- a/src/openrct2/ride/TrackPaint.h +++ b/src/openrct2/ride/TrackPaint.h @@ -486,7 +486,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, * @param supportType */ void TrackPaintUtilOnridePhotoPlatformPaint( - PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType); + PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType); void TrackPaintUtilOnridePhotoSmallPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement); @@ -520,7 +520,7 @@ inline void TrackPaintUtilDiagTilesPaint( void TrackPaintUtilDiagTilesPaintExtra( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, - const uint32_t sprites[4], MetalSupportGraphic supportType); + const uint32_t sprites[4], MetalSupportType supportType); void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence); diff --git a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h index 8266dda913..ad0068e1d1 100644 --- a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h +++ b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h @@ -20,7 +20,7 @@ constexpr RideTypeDescriptor AlpineCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = OpenRCT2::AlpineRC::GetTrackPaintFunction, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf}, .ExtraTrackPieces = {TrackGroup::helixUpBankedHalf}, }), diff --git a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h index 793bfc93a3..b17962c0a5 100644 --- a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h +++ b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor BobsleighCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionBobsleighRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve,TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes,TrackGroup::blockBrakes, TrackGroup::onridePhoto}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h index 46969719f3..dd4c335c4b 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicMiniRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionJuniorRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::onridePhoto}, }), diff --git a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h index ab79c04b69..8791d9f21e 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicStandUpRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionClassicStandUpRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h index b54c037d8c..bfe521e5b5 100644 --- a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CompactInvertedCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCompactInvertedRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h index d92bc741f9..9bdc62a4b7 100644 --- a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes,TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::twist}, }), diff --git a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h index 2c666e5373..b9fe7caf4e 100644 --- a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h @@ -22,13 +22,13 @@ constexpr RideTypeDescriptor FlyingRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionFlyingRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::quarterLoopUninvertedUp, TrackGroup::flyingLargeHalfLoopUninvertedUp, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::flyingLargeHalfLoopUninvertedDown, TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::stationEnd, TrackGroup::verticalLoop, TrackGroup::poweredLift}, }), .InvertedTrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionFlyingRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::quarterLoopInvertedDown, TrackGroup::flyingLargeHalfLoopInvertedDown, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::flyingLargeHalfLoopInvertedUp, TrackGroup::flyingHalfLoopInvertedUp}, }), diff --git a/src/openrct2/ride/rtd/coaster/GigaCoaster.h b/src/openrct2/ride/rtd/coaster/GigaCoaster.h index 185ba38b01..4949eacfcd 100644 --- a/src/openrct2/ride/rtd/coaster/GigaCoaster.h +++ b/src/openrct2/ride/rtd/coaster/GigaCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor GigaCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLatticeTriangleTrack, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::liftHillCable, TrackGroup::booster, TrackGroup::poweredLift, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeVertical, TrackGroup::curveVertical}, .ExtraTrackPieces = {TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/HyperTwister.h b/src/openrct2/ride/rtd/coaster/HyperTwister.h index 76cf3b4248..1ec3c3488f 100644 --- a/src/openrct2/ride/rtd/coaster/HyperTwister.h +++ b/src/openrct2/ride/rtd/coaster/HyperTwister.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor HyperTwisterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = { TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::booster, TrackGroup::poweredLift }, }), diff --git a/src/openrct2/ride/rtd/coaster/Hypercoaster.h b/src/openrct2/ride/rtd/coaster/Hypercoaster.h index 55535f2b92..30067a20eb 100644 --- a/src/openrct2/ride/rtd/coaster/Hypercoaster.h +++ b/src/openrct2/ride/rtd/coaster/Hypercoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor HypercoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::booster}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h index e3bae3807a..dc26cbc8ea 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedHairpinCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedHairpinRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h index aea298faf6..5d5e438bf0 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedImpulseCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedImpulseRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeVertical, TrackGroup::curveVertical}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h index c080facf52..a2f95ab71e 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionInvertedRC, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::halfLoopLarge, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::booster}, }), diff --git a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h index d1e546f23c..da304fc0b6 100644 --- a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor JuniorRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionJuniorRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill,TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::onridePhoto}, }), diff --git a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h index d75e70dfa2..e759da428a 100644 --- a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LIMLaunchedRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLimLaunchedRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::corkscrewLarge}, .ExtraTrackPieces = {TrackGroup::slopeLong, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h index e83462a6cd..7a5a7a2259 100644 --- a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionCorkscrewRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::corkscrewUninverted, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes }, .ExtraTrackPieces = { TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::booster }, } @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD = .InvertedTrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionLayDownRCInverted, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::corkscrewInverted }, .ExtraTrackPieces = { TrackGroup::flyingHalfLoopInvertedUp, TrackGroup::stationEnd, TrackGroup::liftHill }, } diff --git a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h index d723b64398..eeb8f08c80 100644 --- a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LoopingRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLoopingRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::booster, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeVertical, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::slopeLong, TrackGroup::barrelRoll, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge,TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/MineRide.h b/src/openrct2/ride/rtd/coaster/MineRide.h index 80b1c06294..3969670b70 100644 --- a/src/openrct2/ride/rtd/coaster/MineRide.h +++ b/src/openrct2/ride/rtd/coaster/MineRide.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MineRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMineRide, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::onridePhoto}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h index d7399110ed..220446c058 100644 --- a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHill}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHillCurved}, }), diff --git a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h index a29a2c1589..9d22f064b6 100644 --- a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniSuspendedCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniSuspendedRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h index 0d6795006a..99a71cfcbb 100644 --- a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h @@ -21,13 +21,13 @@ constexpr RideTypeDescriptor MultiDimensionRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMultiDimensionRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted,TrackGroup::quarterLoopUninvertedUp, TrackGroup::quarterLoopUninvertedDown, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), .InvertedTrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMultiDimensionRC, - .supportType = MetalSupportGraphic::TubesInverted, + .supportType = MetalSupportType::TubesInverted, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::quarterLoopInvertedUp, TrackGroup::quarterLoopInvertedDown}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h index d49f94f6ce..f7b6922d04 100644 --- a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h @@ -20,7 +20,7 @@ constexpr RideTypeDescriptor SingleRailRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = OpenRCT2::SingleRailRC::GetTrackPaintFunction, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeSteepLong, TrackGroup::halfLoopLarge}, }), diff --git a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h index 0fcf179ee4..e8f568ff6a 100644 --- a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpinningWildMouseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionWildMouse, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight,TrackGroup::stationEnd,TrackGroup::liftHill, TrackGroup::slope,TrackGroup::slopeLong,TrackGroup::curveVerySmall,TrackGroup::curveSmall, TrackGroup::brakes,TrackGroup::blockBrakes,TrackGroup::rotationControlToggle}, .ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve}, }), diff --git a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h index 06c0b708df..2d9a47ba28 100644 --- a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpiralRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHillCurved}, .ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHill}, }), diff --git a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h index 3d53e10f91..dfb7e806ae 100644 --- a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor StandUpRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionStandUpRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h index dbdbceae0d..3b74a6c9bb 100644 --- a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteelWildMouseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionWildMouse, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {TrackGroup::rotationControlToggle}, }), diff --git a/src/openrct2/ride/rtd/coaster/Steeplechase.h b/src/openrct2/ride/rtd/coaster/Steeplechase.h index db083cc3e9..374dcf0028 100644 --- a/src/openrct2/ride/rtd/coaster/Steeplechase.h +++ b/src/openrct2/ride/rtd/coaster/Steeplechase.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteeplechaseRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSteeplechase, - .supportType = MetalSupportGraphic::Stick, + .supportType = MetalSupportType::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h index e16bb4aed7..d14fee96ce 100644 --- a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedSwingingCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSuspendedSwingingRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpUnbankedQuarter, TrackGroup::brakes, TrackGroup::blockBrakes}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h index d4ed9ab02f..22da3598e7 100644 --- a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor TwisterRollerCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop}, }), diff --git a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h index 2211ad9570..a3593d35fc 100644 --- a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h +++ b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor VerticalDropCoasterRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionTwisterRC, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::halfLoopLarge, TrackGroup::brakeForDrop, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist}, }), diff --git a/src/openrct2/ride/rtd/coaster/WaterCoaster.h b/src/openrct2/ride/rtd/coaster/WaterCoaster.h index 22c9351470..b28bc585c2 100644 --- a/src/openrct2/ride/rtd/coaster/WaterCoaster.h +++ b/src/openrct2/ride/rtd/coaster/WaterCoaster.h @@ -24,7 +24,7 @@ constexpr RideTypeDescriptor WaterCoasterRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionWaterRC, - .supportType = MetalSupportGraphic::Fork, + .supportType = MetalSupportType::Fork, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::onridePhoto, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes}, .ExtraTrackPieces = {TrackGroup::slopeLong}, .icon = SPR_RIDE_CONSTRUCTION_RC_TRACK, diff --git a/src/openrct2/ride/rtd/gentle/CarRide.h b/src/openrct2/ride/rtd/gentle/CarRide.h index f3918b52c2..50e05306d7 100644 --- a/src/openrct2/ride/rtd/gentle/CarRide.h +++ b/src/openrct2/ride/rtd/gentle/CarRide.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor CarRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCarRide, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::spinningTunnel}, .ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::rapids}, }), diff --git a/src/openrct2/ride/rtd/gentle/GhostTrain.h b/src/openrct2/ride/rtd/gentle/GhostTrain.h index 640213dedf..3eee2f83f6 100644 --- a/src/openrct2/ride/rtd/gentle/GhostTrain.h +++ b/src/openrct2/ride/rtd/gentle/GhostTrain.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor GhostTrainRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionGhostTrain, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::spinningTunnel}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MiniGolf.h b/src/openrct2/ride/rtd/gentle/MiniGolf.h index 41f0535d08..1517c32702 100644 --- a/src/openrct2/ride/rtd/gentle/MiniGolf.h +++ b/src/openrct2/ride/rtd/gentle/MiniGolf.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniGolfRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniGolf, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::miniGolfHole}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h index 2dfd83fd98..bedf552026 100644 --- a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h +++ b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MiniHelicoptersRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMiniHelicopters, - .supportType = MetalSupportGraphic::Stick, + .supportType = MetalSupportType::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall}, .ExtraTrackPieces = {TrackGroup::spinningTunnel}, }), diff --git a/src/openrct2/ride/rtd/gentle/MonorailCycles.h b/src/openrct2/ride/rtd/gentle/MonorailCycles.h index 8c68e942e7..12b1629c96 100644 --- a/src/openrct2/ride/rtd/gentle/MonorailCycles.h +++ b/src/openrct2/ride/rtd/gentle/MonorailCycles.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailCyclesRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMonorailCycles, - .supportType = MetalSupportGraphic::Stick, + .supportType = MetalSupportType::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h index 84a4ee06f6..11a32d8a24 100644 --- a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h +++ b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonsterTrucksRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionCarRide, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::rapids}, .ExtraTrackPieces = {TrackGroup::spinningTunnel}, }), diff --git a/src/openrct2/ride/rtd/transport/Chairlift.h b/src/openrct2/ride/rtd/transport/Chairlift.h index 6b23c0af9a..a6a62c8a3f 100644 --- a/src/openrct2/ride/rtd/transport/Chairlift.h +++ b/src/openrct2/ride/rtd/transport/Chairlift.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor ChairliftRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionChairlift, - .supportType = MetalSupportGraphic::Truss, + .supportType = MetalSupportType::Truss, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/transport/Monorail.h b/src/openrct2/ride/rtd/transport/Monorail.h index e7000c698c..c825eefc7a 100644 --- a/src/openrct2/ride/rtd/transport/Monorail.h +++ b/src/openrct2/ride/rtd/transport/Monorail.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionMonorail, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h index 11f31730e5..31e69a04cd 100644 --- a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h +++ b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedMonorailRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSuspendedMonorail, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/water/DinghySlide.h b/src/openrct2/ride/rtd/water/DinghySlide.h index bcc859c43e..356e8218e7 100644 --- a/src/openrct2/ride/rtd/water/DinghySlide.h +++ b/src/openrct2/ride/rtd/water/DinghySlide.h @@ -23,7 +23,7 @@ constexpr RideTypeDescriptor DinghySlideRTD = .TrackPaintFunctions = TrackDrawerDescriptor( { .Drawer = GetTrackPaintFunctionDinghySlide, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve }, .ExtraTrackPieces = {}, .icon = SPR_RIDE_CONSTRUCTION_U_SHAPED_TRACK, @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor DinghySlideRTD = }, { .Drawer = GetTrackPaintFunctionDinghySlideCovered, - .supportType = MetalSupportGraphic::Tubes, + .supportType = MetalSupportType::Tubes, .EnabledTrackPieces = {OpenRCT2::TrackElemType::Flat, OpenRCT2::TrackElemType::Up25, OpenRCT2::TrackElemType::Up60, OpenRCT2::TrackElemType::FlatToUp25, OpenRCT2::TrackElemType::Up25ToUp60, OpenRCT2::TrackElemType::Up60ToUp25, OpenRCT2::TrackElemType::Up25ToFlat, OpenRCT2::TrackElemType::Down25, OpenRCT2::TrackElemType::Down60, OpenRCT2::TrackElemType::FlatToDown25, OpenRCT2::TrackElemType::Down25ToDown60, OpenRCT2::TrackElemType::Down60ToDown25, OpenRCT2::TrackElemType::Down25ToFlat, OpenRCT2::TrackElemType::LeftQuarterTurn5Tiles, OpenRCT2::TrackElemType::RightQuarterTurn5Tiles, OpenRCT2::TrackElemType::SBendLeft, OpenRCT2::TrackElemType::SBendRight, OpenRCT2::TrackElemType::LeftQuarterTurn3Tiles,OpenRCT2::TrackElemType::RightQuarterTurn3Tiles}, .ExtraTrackPieces = {}, .icon = SPR_RIDE_CONSTRUCTION_O_SHAPED_TRACK, diff --git a/src/openrct2/ride/rtd/water/LogFlume.h b/src/openrct2/ride/rtd/water/LogFlume.h index fcb67a6ba4..9321842603 100644 --- a/src/openrct2/ride/rtd/water/LogFlume.h +++ b/src/openrct2/ride/rtd/water/LogFlume.h @@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LogFlumeRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionLogFlume, - .supportType = MetalSupportGraphic::Boxed, + .supportType = MetalSupportType::Boxed, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::onridePhoto, TrackGroup::logFlumeReverser, TrackGroup::slopeSteepDown}, .ExtraTrackPieces = {}, }), diff --git a/src/openrct2/ride/rtd/water/SubmarineRide.h b/src/openrct2/ride/rtd/water/SubmarineRide.h index d51b6da755..0b3aaa3340 100644 --- a/src/openrct2/ride/rtd/water/SubmarineRide.h +++ b/src/openrct2/ride/rtd/water/SubmarineRide.h @@ -22,7 +22,7 @@ constexpr RideTypeDescriptor SubmarineRideRTD = .StartTrackPiece = OpenRCT2::TrackElemType::EndStation, .TrackPaintFunctions = TrackDrawerDescriptor({ .Drawer = GetTrackPaintFunctionSubmarineRide, - .supportType = MetalSupportGraphic::Stick, + .supportType = MetalSupportType::Stick, .EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::curveVerySmall, TrackGroup::curveSmall}, .ExtraTrackPieces = {}, }), From 64dea4cd5d54be7dc7e85ebfcce3fd8b1953d637 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 17 Aug 2024 00:13:08 +0200 Subject: [PATCH 3/6] Replace usages of MetalSupportGraphic with MetalSupportType --- .../paint/track/coaster/AlpineCoaster.cpp | 570 +---- .../track/coaster/FlyingRollerCoaster.cpp | 4 +- .../track/coaster/JuniorRollerCoaster.cpp | 218 +- .../track/coaster/LoopingRollerCoaster.cpp | 80 +- src/openrct2/paint/track/coaster/MineRide.cpp | 684 ++---- .../paint/track/coaster/MiniRollerCoaster.cpp | 2048 +++-------------- .../track/coaster/MiniSuspendedCoaster.cpp | 458 +--- .../paint/track/coaster/Steeplechase.cpp | 437 +--- .../track/coaster/WoodenRollerCoaster.cpp | 40 +- .../paint/track/gentle/MonorailCycles.cpp | 95 +- .../paint/track/thrill/MagicCarpet.cpp | 15 +- .../track/thrill/SwingingInverterShip.cpp | 15 +- .../paint/track/thrill/SwingingShip.cpp | 22 +- src/openrct2/ride/TrackPaint.cpp | 3 +- 14 files changed, 892 insertions(+), 3797 deletions(-) diff --git a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp index bc0722347a..69901abeb3 100644 --- a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp @@ -855,33 +855,27 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 3)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 7)), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 11)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 15)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, DirectionPrev(direction), 0, height, + session.SupportColours); + PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1021,33 +1015,26 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 19)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 23)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 27)), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE + 31)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, DirectionNext(direction), 0, height, + session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1205,27 +1192,11 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 9, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 9, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 9, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, - session.SupportColours); break; } } @@ -1233,29 +1204,15 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 9, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 9, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 9, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 9, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 9, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1382,27 +1339,11 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 5)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } @@ -1410,29 +1351,15 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 5)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1559,58 +1486,30 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 2, - session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 2, - session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, + height + (direction & 1) ? 0 : 2, session.SupportColours); } else { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 2, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 1)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 2, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 2, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 2, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 2, height, + session.SupportColours); } PaintUtilSetSegmentSupportHeight( session, @@ -1738,27 +1637,11 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 8, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 11)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 8, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 8, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, - session.SupportColours); break; } } @@ -1766,29 +1649,15 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 8, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 11)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 8, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 8, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 8, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1912,27 +1781,11 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 7)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } @@ -1940,29 +1793,15 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 7)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2090,27 +1929,11 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_LIFT_TRACK_GENTLE_DIAGONAL + 3)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } @@ -2118,29 +1941,15 @@ namespace OpenRCT2::AlpineRC { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_DIAGONAL + 3)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2606,29 +2415,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 2)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2715,29 +2510,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 6)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2824,29 +2605,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 9)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2933,29 +2700,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 4)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3042,29 +2795,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 12)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3151,29 +2890,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 16)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3260,29 +2985,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 22)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3369,29 +3080,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 26)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3475,29 +3172,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 29)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3582,29 +3265,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 24)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3692,29 +3361,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 19)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3801,29 +3456,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 14)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3906,29 +3547,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 31)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4011,29 +3638,15 @@ namespace OpenRCT2::AlpineRC case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_BANK_TRANSITION_DIAGONAL + 33)), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4536,33 +4149,26 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 3)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 7)), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 11)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 15)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, DirectionPrev(direction), 0, height, + session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4702,33 +4308,26 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 19)), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 23)), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 27)), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_CURVE_BANKED + 31)), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, DirectionNext(direction), 0, height, + session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4918,33 +4517,26 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 9)), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 11)), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 13)), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_GENTLE_SMALL_CURVE + 15)), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), direction == 2 ? 10 : 8, + height, session.SupportColours); switch (direction) { case 0: @@ -5465,8 +5057,8 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 5)), { 0, 0, height }, { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 1, height - 1, session.SupportColours); break; case 2: @@ -5514,8 +5106,8 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 5)), { 0, 0, height }, { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 1, height - 1, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 1, height - 1, session.SupportColours); break; } @@ -5637,8 +5229,8 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 13)), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height, session.SupportColours); break; case 2: @@ -5686,8 +5278,8 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_S_BEND + 13)), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height, session.SupportColours); break; } @@ -6881,9 +6473,6 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 26)), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, - session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -6892,25 +6481,21 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 32)), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 37)), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, - session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 43)), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), direction == 1 ? 5 : 9, + height, session.SupportColours); switch (direction) { case 0: @@ -7097,33 +6682,26 @@ namespace OpenRCT2::AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 32)), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 37)), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 43)), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex((SPR_G2_ALPINE_TRACK_LARGE_HELIX + 26)), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, direction == 0 ? 5 : 9, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat); diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index cd951209af..ceca565d56 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -9911,8 +9911,8 @@ static void FlyingRCTrackDiagBrakesInverted( if (trackSequence == 3) { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, kDiagSupportPlacement[direction], 0, height + 39, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 39, session.SupportColours); } PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp index 4f9a574376..7eafa56cb6 100644 --- a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp @@ -3093,22 +3093,6 @@ static void JuniorRCSBendLeftPaintSetup( { PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } } else { @@ -3116,22 +3100,21 @@ static void JuniorRCSBendLeftPaintSetup( { PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } + } + switch (trackSequence) + { + case 0: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction & 1, 0, height, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; } int32_t blockedSegments = 0; @@ -3203,22 +3186,6 @@ static void JuniorRCSBendRightPaintSetup( { PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } } else { @@ -3226,23 +3193,22 @@ static void JuniorRCSBendRightPaintSetup( { PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, - session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } + } + switch (trackSequence) + { + case 0: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction & 1, 0, height, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; } int32_t blockedSegments = 0; @@ -4149,18 +4115,9 @@ static void JuniorRCLeftEighthToDiagPaintSetup( session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: - if (direction == 0) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); - if (direction == 1) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - if (direction == 2) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); - if (direction == 3) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, DirectionPrev(direction), 0, height, + session.SupportColours); break; } @@ -4221,18 +4178,9 @@ static void JuniorRCRightEighthToDiagPaintSetup( session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: - if (direction == 0) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - if (direction == 1) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); - if (direction == 2) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - if (direction == 3) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, DirectionNext(direction), 0, height, + session.SupportColours); break; } @@ -4392,18 +4340,8 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: - if (direction == 0) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); - if (direction == 1) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - if (direction == 2) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); - if (direction == 3) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 0, height, session.SupportColours); break; } @@ -4545,18 +4483,8 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); break; case 4: - if (direction == 0) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - if (direction == 1) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); - if (direction == 2) - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - if (direction == 3) - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); break; } @@ -4641,7 +4569,7 @@ static void JuniorRCTrackDiagBrakes( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4660,7 +4588,7 @@ static void JuniorRCTrackDiagBlockBrakes( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4681,7 +4609,7 @@ static void JuniorRCPaintTrackDiag25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4702,7 +4630,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4724,7 +4652,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height + 6, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 6, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4745,7 +4673,7 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4767,7 +4695,7 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 13, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height + 13, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4788,7 +4716,7 @@ static void JuniorRCPaintTrackDiag25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4809,7 +4737,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4831,7 +4759,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 7, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height + 7, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4852,7 +4780,7 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4874,7 +4802,7 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4900,7 +4828,7 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4926,7 +4854,7 @@ static void JuniorRCDiagFlatToRightBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4952,7 +4880,7 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -4978,7 +4906,7 @@ static void JuniorRCDiagRightBankToFlatPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5004,7 +4932,7 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5030,7 +4958,7 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5056,7 +4984,7 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5082,7 +5010,7 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5108,7 +5036,7 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5134,7 +5062,7 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5160,7 +5088,7 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5186,7 +5114,7 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5221,7 +5149,7 @@ static void JuniorRCDiagLeftBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5242,7 +5170,7 @@ static void JuniorRCDiagRightBankPaintSetup( if (trackSequence == 3) { MetalASupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5494,7 +5422,7 @@ static void JuniorRCPaintTrackDiag60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 36, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 36, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5516,7 +5444,7 @@ static void JuniorRCPaintTrackDiag60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 28, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 28, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5538,7 +5466,7 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 16, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 16, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5570,7 +5498,7 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 21, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 21, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5602,7 +5530,7 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 17, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 17, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; @@ -5624,7 +5552,7 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown( if (trackSequence == 3) { MetalBSupportsPaintSetupRotated( - session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours); + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours); } int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; diff --git a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp index 77600468fb..122d765afb 100644 --- a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp @@ -2355,9 +2355,9 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15350), { 16, 0, height }, { { 16, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15364), { 16, 0, height }, { { 16, 0, height }, { 3, 16, 119 } }); @@ -2366,9 +2366,9 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15358), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15366), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); @@ -2377,9 +2377,9 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15353), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Thick, MetalSupportPlace::RightCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15365), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); @@ -2388,9 +2388,9 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15361), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15367), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); @@ -2479,8 +2479,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15353), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Thick, MetalSupportPlace::RightCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15365), { 10, 16, height }, @@ -2490,8 +2490,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15361), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::BottomCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15367), { 16, 16, height }, @@ -2501,8 +2501,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15350), { 16, 0, height }, { { 16, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::LeftCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15364), { 16, 0, height }, @@ -2512,8 +2512,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15358), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::TopCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15366), { 12, 0, height }, @@ -2664,8 +2664,8 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15381), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15384), { 16, 16, height }, @@ -2675,8 +2675,8 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15373), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15386), { 10, 16, height }, @@ -2686,8 +2686,8 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15378), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15385), { 12, 0, height }, @@ -2697,8 +2697,8 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15370), { 16, 0, height }, { { 16, 0, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, direction, 0, height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15387), { 16, 0, height }, @@ -2764,9 +2764,9 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15378), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickCentred, MetalSupportPlace::TopCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15385), { 12, 0, height }, { { 12, 0, height }, { 3, 16, 119 } }); @@ -2775,9 +2775,9 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15370), { 16, 0, height }, { { 16, 0, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAltCentred, MetalSupportPlace::RightCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15387), { 16, 0, height }, { { 16, 0, height }, { 2, 16, 119 } }); @@ -2786,9 +2786,9 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15381), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Thick, MetalSupportPlace::BottomCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15384), { 16, 16, height }, { { 16, 16, height }, { 2, 16, 119 } }); @@ -2797,9 +2797,9 @@ static void LoopingRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(15373), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ThickAlt, MetalSupportPlace::LeftCorner, 0, height - 8, - session.TrackColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, DirectionReverse(direction), 0, + height - 8, session.TrackColours); PaintAddImageAsChildRotated( session, direction, session.TrackColours.WithIndex(15386), { 10, 16, height }, { { 10, 16, height }, { 4, 16, 119 } }); diff --git a/src/openrct2/paint/track/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp index 55d1e3fb2d..c38a8ee5e0 100644 --- a/src/openrct2/paint/track/coaster/MineRide.cpp +++ b/src/openrct2/paint/track/coaster/MineRide.cpp @@ -1269,15 +1269,16 @@ static void MineRideTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19469), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomRightSide, 6, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 6, height, + session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19473), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 6, height, session.SupportColours); break; case 2: @@ -1321,8 +1322,8 @@ static void MineRideTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19473), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 6, height, session.SupportColours); break; } @@ -1343,31 +1344,25 @@ static void MineRideTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19471), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19475), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19468), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19472), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); switch (direction) { case 1: @@ -1404,31 +1399,25 @@ static void MineRideTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19397), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19400), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19403), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19394), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -1487,31 +1476,26 @@ static void MineRideTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19395), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19398), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19401), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19392), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -1560,31 +1544,25 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19416), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19412), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19415), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19406), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -1643,15 +1621,11 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19407), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19410), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1660,17 +1634,16 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19417), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19404), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -1726,8 +1699,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19498), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1740,8 +1713,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19492), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); break; } if (direction == 0 || direction == 3) @@ -1802,15 +1775,11 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19493), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19496), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1819,17 +1788,16 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19503), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19490), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), direction == 2 ? 15 : 12, + height, session.SupportColours); switch (direction) { case 2: @@ -1856,8 +1824,6 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19492), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -1866,24 +1832,21 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19502), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19498), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19501), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height, + session.SupportColours); switch (direction) { case 0: @@ -1947,22 +1910,16 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19490), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19493), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19496), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -1971,10 +1928,11 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19503), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, direction == 3 ? 15 : 12, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -2000,28 +1958,23 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( switch (trackSequence) { case 0: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19476), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19479), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19482), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2030,10 +1983,13 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19489), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 8, 8, 9, 11 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, _specialValues[direction], height, + session.SupportColours); + if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2048,6 +2004,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 1: PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2086,14 +2043,13 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 3: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19478), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2102,24 +2058,23 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19488), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19484), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19487), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 12, 15, 14, 12 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), _specialValues[direction], + height, session.SupportColours); + switch (direction) { case 0: @@ -2139,22 +2094,20 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 4: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19479), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19482), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2163,17 +2116,17 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19489), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19476), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 8, 9, 11, 8 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), _specialValues[direction], + height, session.SupportColours); switch (direction) { case 2: @@ -2193,6 +2146,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 5: PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2231,6 +2185,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 7: + { switch (direction) { case 0: @@ -2240,31 +2195,27 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19488), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19484), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19487), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19478), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 15, 14, 12, 12 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), _specialValues[direction], + height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -2279,6 +2230,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } } } @@ -2329,31 +2281,25 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19546), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19540), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19545), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19530), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2483,15 +2429,11 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19531), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19536), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2500,17 +2442,16 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19547), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19526), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 13, height, + session.SupportColours); switch (direction) { case 2: @@ -2537,8 +2478,6 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19530), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2547,24 +2486,21 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19546), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19540), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19545), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 7, height, + session.SupportColours); switch (direction) { case 0: @@ -2698,22 +2634,16 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19526), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19531), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19536), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2722,10 +2652,11 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19547), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), 13, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -2757,22 +2688,16 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19504), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19509), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19514), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -2781,10 +2706,10 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19525), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2913,8 +2838,6 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19508), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -2923,24 +2846,21 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19524), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19518), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19523), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 13, height, + session.SupportColours); switch (direction) { case 0: @@ -2967,15 +2887,11 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19509), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19514), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2984,17 +2900,16 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19525), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19504), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 7, height, + session.SupportColours); switch (direction) { case 2: @@ -3132,31 +3047,26 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19524), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19518), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19523), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19508), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), 13, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -3256,31 +3166,25 @@ static void MineRideTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19564), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19568), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19572), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19576), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3375,33 +3279,25 @@ static void MineRideTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19567), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19571), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19575), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19579), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3429,31 +3325,25 @@ static void MineRideTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19548), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19552), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19556), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19560), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3548,32 +3438,25 @@ static void MineRideTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19551), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19555), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19559), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19563), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3619,31 +3502,25 @@ static void MineRideTrackLeftEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19596), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19600), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19604), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19608), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3738,33 +3615,25 @@ static void MineRideTrackLeftEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19599), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19603), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19607), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19611), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -3792,31 +3661,25 @@ static void MineRideTrackRightEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19580), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19584), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19588), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19592), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3911,32 +3774,25 @@ static void MineRideTrackRightEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19583), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19587), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19591), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19595), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4053,28 +3909,14 @@ static void MineRideTrackDiag25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19625), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 14, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4154,27 +3996,14 @@ static void MineRideTrackDiagFlatTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19617), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4254,28 +4083,14 @@ static void MineRideTrackDiag25DegUpToFlat( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19621), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4355,28 +4170,14 @@ static void MineRideTrackDiag25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19627), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 14, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4453,28 +4254,14 @@ static void MineRideTrackDiagFlatTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19623), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4555,27 +4342,14 @@ static void MineRideTrackDiag25DegDownToFlat( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19619), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4658,27 +4432,14 @@ static void MineRideTrackDiagFlatToLeftBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19633), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4761,27 +4522,14 @@ static void MineRideTrackDiagFlatToRightBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19638), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4864,27 +4612,14 @@ static void MineRideTrackDiagLeftBankToFlat( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19640), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -4967,27 +4702,14 @@ static void MineRideTrackDiagRightBankToFlat( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19635), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5070,27 +4792,14 @@ static void MineRideTrackDiagLeftBankTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19653), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5173,27 +4882,14 @@ static void MineRideTrackDiagRightBankTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19658), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5276,28 +4972,14 @@ static void MineRideTrackDiag25DegUpToLeftBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19643), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5380,28 +5062,14 @@ static void MineRideTrackDiag25DegUpToRightBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19648), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5481,28 +5149,14 @@ static void MineRideTrackDiagLeftBankTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19650), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5583,28 +5237,14 @@ static void MineRideTrackDiagRightBankTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19645), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5688,27 +5328,14 @@ static void MineRideTrackDiag25DegDownToLeftBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19660), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5791,27 +5418,14 @@ static void MineRideTrackDiag25DegDownToRightBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19655), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5891,27 +5505,14 @@ static void MineRideTrackDiagLeftBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19629), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5991,27 +5592,14 @@ static void MineRideTrackDiagRightBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19631), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( diff --git a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp index 9800ae94b7..9a2e73626e 100644 --- a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp @@ -48,41 +48,21 @@ static void MiniRCTrackFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19044), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19045), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19046), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19047), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } } @@ -95,25 +75,20 @@ static void MiniRCTrackFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18738), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18739), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -166,41 +141,21 @@ static void MiniRCTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19056), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19057), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19058), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19059), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } } @@ -212,44 +167,29 @@ static void MiniRCTrack25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18796), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18797), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18798), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18799), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -273,43 +213,28 @@ static void MiniRCTrack60DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18812), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 38, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18813), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 98 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18814), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 98 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 38, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18815), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 38, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 38, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -335,41 +260,21 @@ static void MiniRCTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19048), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19049), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19050), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19051), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } } @@ -381,44 +286,29 @@ static void MiniRCTrackFlatTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18788), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18789), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18790), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18791), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -442,11 +332,6 @@ static void MiniRCTrack25DegUpTo60DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18800), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 18, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -455,11 +340,6 @@ static void MiniRCTrack25DegUpTo60DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18804), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 66 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -468,23 +348,18 @@ static void MiniRCTrack25DegUpTo60DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18805), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 66 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 18, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18803), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 18, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 18, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -508,11 +383,6 @@ static void MiniRCTrack60DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18806), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 26, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -521,11 +391,6 @@ static void MiniRCTrack60DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18810), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 66 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -534,23 +399,18 @@ static void MiniRCTrack60DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18811), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 66 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 26, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18809), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 26, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 26, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -576,41 +436,21 @@ static void MiniRCTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19052), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19053), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19054), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19055), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } } @@ -622,44 +462,29 @@ static void MiniRCTrack25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18792), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18793), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18794), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18795), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -734,31 +559,25 @@ static void MiniRCTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18851), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18856), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18861), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18846), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -888,31 +707,26 @@ static void MiniRCTrackLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18847), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18852), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18857), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18842), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -958,11 +772,6 @@ static void MiniRCTrackFlatToLeftBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18756), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -971,33 +780,23 @@ static void MiniRCTrackFlatToLeftBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18757), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18750), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18751), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1014,21 +813,11 @@ static void MiniRCTrackFlatToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18752), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18753), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -1037,11 +826,6 @@ static void MiniRCTrackFlatToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18758), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( @@ -1050,13 +834,13 @@ static void MiniRCTrackFlatToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18759), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1076,11 +860,6 @@ static void MiniRCTrackLeftBankToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18758), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -1089,33 +868,23 @@ static void MiniRCTrackLeftBankToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18759), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18752), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18753), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1132,21 +901,11 @@ static void MiniRCTrackRightBankToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18750), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18751), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -1155,11 +914,6 @@ static void MiniRCTrackRightBankToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18756), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( @@ -1168,13 +922,14 @@ static void MiniRCTrackRightBankToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18757), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1197,31 +952,25 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18882), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18876), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18881), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18866), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -1351,15 +1100,11 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18867), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18872), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -1368,17 +1113,16 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18883), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18862), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -1424,11 +1168,6 @@ static void MiniRCTrackLeftBankTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18764), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -1437,33 +1176,23 @@ static void MiniRCTrackLeftBankTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18765), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18762), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18763), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -1487,21 +1216,11 @@ static void MiniRCTrackRightBankTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18766), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18767), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -1510,11 +1229,6 @@ static void MiniRCTrackRightBankTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18770), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( @@ -1523,13 +1237,13 @@ static void MiniRCTrackRightBankTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18771), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -1556,11 +1270,6 @@ static void MiniRCTrack25DegUpToLeftBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18776), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -1569,33 +1278,23 @@ static void MiniRCTrack25DegUpToLeftBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18777), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18774), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18775), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -1619,21 +1318,11 @@ static void MiniRCTrack25DegUpToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18778), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18779), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -1642,11 +1331,6 @@ static void MiniRCTrack25DegUpToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18782), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( @@ -1655,13 +1339,13 @@ static void MiniRCTrack25DegUpToRightBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18783), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -1717,43 +1401,28 @@ static void MiniRCTrackLeftBank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18784), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18785), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18786), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18787), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1781,31 +1450,25 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18936), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18941), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18946), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18951), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -1930,31 +1593,26 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18940), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18945), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18950), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18955), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 14, height, + session.SupportColours); switch (direction) { case 2: @@ -1991,31 +1649,25 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18916), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18921), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18926), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18931), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -2139,31 +1791,25 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18920), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18925), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18930), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18935), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); switch (direction) { case 0: @@ -2218,31 +1864,25 @@ static void MiniRCTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18900), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18904), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18903), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18907), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2263,14 +1903,15 @@ static void MiniRCTrackSBendLeft( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18901), { 0, 0, height }, { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopLeftSide, 3, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 3, height, + session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18905), { 0, 0, height }, { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 6, height, session.SupportColours); break; case 2: @@ -2316,8 +1957,8 @@ static void MiniRCTrackSBendLeft( case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18905), { 0, 0, height }, { 32, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 6, height, session.SupportColours); break; } @@ -2338,31 +1979,25 @@ static void MiniRCTrackSBendLeft( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18903), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18907), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18900), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18904), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); switch (direction) { case 1: @@ -2399,31 +2034,25 @@ static void MiniRCTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18908), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18912), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18911), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18915), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2452,8 +2081,8 @@ static void MiniRCTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18913), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 6, height, session.SupportColours); break; case 2: @@ -2497,8 +2126,8 @@ static void MiniRCTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18913), { 0, 0, height }, { { 0, 6, height }, { 32, 26, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 6, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 6, height, session.SupportColours); break; } @@ -2519,31 +2148,25 @@ static void MiniRCTrackSBendRight( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18911), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18915), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18908), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18912), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); switch (direction) { case 1: @@ -2580,31 +2203,25 @@ static void MiniRCTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18821), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18824), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18827), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18818), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2663,31 +2280,26 @@ static void MiniRCTrackLeftQuarterTurn3( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18819), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18822), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18825), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18816), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -2736,31 +2348,25 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18840), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18836), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18839), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18830), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -2819,15 +2425,11 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18831), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18834), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -2836,17 +2438,16 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18841), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18828), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 6, height, + session.SupportColours); switch (direction) { case 2: @@ -2891,28 +2492,22 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18967), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18969), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18971), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18965), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -2939,28 +2534,23 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18966), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18968), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18970), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18964), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 14, height, + session.SupportColours); switch (direction) { case 2: @@ -2996,28 +2586,22 @@ static void MiniRCTrackRightQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18956), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18958), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18960), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18962), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -3044,28 +2628,23 @@ static void MiniRCTrackRightQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18957), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18959), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18961), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18963), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 14, height, + session.SupportColours); switch (direction) { case 0: @@ -3123,31 +2702,25 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18998), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18994), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18997), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18988), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3206,15 +2779,11 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18989), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18992), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3223,17 +2792,16 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18999), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18986), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, (direction == 2) ? 15 : 12, height, + session.SupportColours); switch (direction) { case 2: @@ -3260,8 +2828,6 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18988), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3270,24 +2836,21 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18998), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18994), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18997), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height, + session.SupportColours); switch (direction) { case 0: @@ -3351,22 +2914,16 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18986), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18989), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18992), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3375,10 +2932,11 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18999), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), (direction == 3) ? 15 : 12, + height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -3410,22 +2968,16 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18972), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18975), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18978), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -3434,10 +2986,10 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18985), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3490,14 +3042,13 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 3: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18974), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3506,24 +3057,22 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18984), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18980), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18983), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 12, 15, 14, 12 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), _specialValues[direction], + height, session.SupportColours); switch (direction) { case 0: @@ -3543,22 +3092,20 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 4: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18975), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18978), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3567,17 +3114,17 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18985), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 11, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18972), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 8, 9, 11, 8 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), _specialValues[direction], + height, session.SupportColours); switch (direction) { case 2: @@ -3597,6 +3144,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 5: PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3635,6 +3183,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 7: + { switch (direction) { case 0: @@ -3644,31 +3193,27 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18984), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 15, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18980), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18983), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18974), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 15, 14, 12, 12 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), _specialValues[direction], + height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -3683,6 +3228,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } } } @@ -3732,31 +3278,25 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19042), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19036), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19041), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19026), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -3886,15 +3426,11 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19027), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19032), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -3903,17 +3439,16 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19043), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19022), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 13, height, + session.SupportColours); switch (direction) { case 2: @@ -3940,8 +3475,6 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19026), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -3950,24 +3483,21 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19042), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19036), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19041), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 7, height, + session.SupportColours); switch (direction) { case 0: @@ -4101,22 +3631,16 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19022), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19027), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19032), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -4125,10 +3649,11 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19043), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), 13, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -4160,22 +3685,16 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19000), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19005), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19010), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -4184,10 +3703,10 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19021), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -4316,8 +3835,6 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19004), { 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( @@ -4326,24 +3843,21 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19020), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19014), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19019), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 13, height, + session.SupportColours); switch (direction) { case 0: @@ -4370,15 +3884,11 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19005), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19010), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -4387,17 +3897,16 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19021), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19000), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 7, height, + session.SupportColours); switch (direction) { case 2: @@ -4535,31 +4044,26 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19020), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19014), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19019), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19004), { 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 13, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionReverse(direction), 13, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat); @@ -4726,24 +4230,19 @@ static void MiniRCTrackBrakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18740), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(18741), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4760,43 +4259,28 @@ static void MiniRCTrack25DegUpLeftBanked( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19222), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19223), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19224), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19225), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -4820,43 +4304,28 @@ static void MiniRCTrack25DegUpRightBanked( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19226), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19227), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19228), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19229), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -4937,31 +4406,25 @@ static void MiniRCTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19076), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19080), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19084), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19088), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -5056,33 +4519,25 @@ static void MiniRCTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19079), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19083), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19087), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19091), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5110,31 +4565,25 @@ static void MiniRCTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19060), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19064), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19068), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19072), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -5229,32 +4678,25 @@ static void MiniRCTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19063), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19067), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19071), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19075), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5300,31 +4742,25 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19108), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19112), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19116), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19120), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -5419,33 +4855,25 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19111), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19115), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 6, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19119), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19123), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5473,31 +4901,25 @@ static void MiniRCTrackRightEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19092), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19096), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19100), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19104), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -5592,32 +5014,25 @@ static void MiniRCTrackRightEighthBankToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19095), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19099), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19103), { 0, 0, height }, { { 0, 16, height + 27 }, { 16, 18, 0 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19107), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5782,26 +5197,10 @@ static void MiniRCTrackDiag25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19199), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } } @@ -5809,29 +5208,15 @@ static void MiniRCTrackDiag25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19137), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 14, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -5911,28 +5296,15 @@ static void MiniRCTrackDiag60DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 38, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19149), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 42, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 38, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 42, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, (direction & 1) ? 42 : 38, direction, height, + session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6056,26 +5428,10 @@ static void MiniRCTrackDiagFlatTo25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19191), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } @@ -6083,29 +5439,15 @@ static void MiniRCTrackDiagFlatTo25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19129), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6185,28 +5527,14 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 22, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19141), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 22, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 22, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 22, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 22, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6286,28 +5614,14 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 27, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19145), { -16, -16, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 27, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 27, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 27, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 27, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6431,26 +5745,10 @@ static void MiniRCTrackDiag25DegUpToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19195), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } } @@ -6458,29 +5756,15 @@ static void MiniRCTrackDiag25DegUpToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19133), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6604,26 +5888,10 @@ static void MiniRCTrackDiag25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19201), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } } @@ -6631,29 +5899,15 @@ static void MiniRCTrackDiag25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19139), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 14, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6733,28 +5987,15 @@ static void MiniRCTrackDiag60DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 30, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19151), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 34, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 30, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 34, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, (direction & 1) ? 34 : 30, height, + session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -6875,26 +6116,10 @@ static void MiniRCTrackDiagFlatTo25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19197), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } } @@ -6902,29 +6127,15 @@ static void MiniRCTrackDiagFlatTo25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19135), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7005,28 +6216,14 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 23, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19147), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 23, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 23, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 23, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 23, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7106,28 +6303,14 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 14, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19143), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 14, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 14, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 14, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 14, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7251,26 +6434,10 @@ static void MiniRCTrackDiag25DegDownToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19193), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } @@ -7278,29 +6445,15 @@ static void MiniRCTrackDiag25DegDownToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19131), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7383,27 +6536,14 @@ static void MiniRCTrackDiagFlatToLeftBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19157), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7486,27 +6626,14 @@ static void MiniRCTrackDiagFlatToRightBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19162), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7589,27 +6716,14 @@ static void MiniRCTrackDiagLeftBankToFlat( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19164), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7692,27 +6806,14 @@ static void MiniRCTrackDiagRightBankToFlat( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19159), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7795,27 +6896,14 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19177), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -7898,27 +6986,14 @@ static void MiniRCTrackDiagRightBankTo25DegUp( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19182), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8001,28 +7076,14 @@ static void MiniRCTrackDiag25DegUpToLeftBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19167), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8105,28 +7166,14 @@ static void MiniRCTrackDiag25DegUpToRightBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19172), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8206,28 +7253,14 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19174), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8308,28 +7341,14 @@ static void MiniRCTrackDiagRightBankTo25DegDown( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 10, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19169), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 10, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 10, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 10, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 10, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8413,27 +7432,14 @@ static void MiniRCTrackDiag25DegDownToLeftBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19184), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8516,27 +7522,14 @@ static void MiniRCTrackDiag25DegDownToRightBank( case 3: switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19179), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8616,27 +7609,14 @@ static void MiniRCTrackDiagLeftBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19153), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8716,27 +7696,14 @@ static void MiniRCTrackDiagRightBank( case 3: switch (direction) { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19155), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 6, height, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -8759,24 +7726,10 @@ static void MiniRCTrackBlockBrakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(_MiniRCBlockBrakeImages[direction][isClosed]), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - switch (direction) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - case 0: - case 2: - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } - break; - case 1: - case 3: - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } - break; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -8796,29 +7749,23 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19317), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19319), { 0, 6, height }, { { 0, 27, height }, { 32, 1, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19321), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19315), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -8845,30 +7792,25 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19316), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19318), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19320), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19314), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 14, height, + session.SupportColours); switch (direction) { case 2: @@ -8904,29 +7846,23 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19306), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19308), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19310), { 0, 6, height }, { { 0, 27, height }, { 32, 1, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19312), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -8953,30 +7889,25 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19307), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19309), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19311), { 6, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19313), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 14, height, + session.SupportColours); switch (direction) { case 0: @@ -9033,31 +7964,25 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19286), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19291), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19296), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19301), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9185,31 +8110,26 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19290), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19295), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19300), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19305), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 14, height, + session.SupportColours); switch (direction) { case 2: @@ -9246,31 +8166,25 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19266), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19271), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19276), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19281), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9397,31 +8311,26 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19270), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19275), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19280), { 0, 0, height }, { { 27, 0, height }, { 1, 32, 34 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19285), { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 14, height, + session.SupportColours); switch (direction) { case 0: @@ -9475,11 +8384,6 @@ static void MiniRCTrack25DegUpToLeftBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19230), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -9488,33 +8392,23 @@ static void MiniRCTrack25DegUpToLeftBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19238), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19232), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19233), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9538,21 +8432,11 @@ static void MiniRCTrack25DegUpToRightBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19234), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19235), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -9561,23 +8445,18 @@ static void MiniRCTrack25DegUpToRightBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19239), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19237), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9601,11 +8480,6 @@ static void MiniRCTrackLeftBanked25DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19240), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -9614,33 +8488,23 @@ static void MiniRCTrackLeftBanked25DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19248), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19242), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19243), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9664,21 +8528,11 @@ static void MiniRCTrackRightBanked25DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19244), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19245), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -9687,23 +8541,18 @@ static void MiniRCTrackRightBanked25DegUpTo25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19249), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19247), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -9761,43 +8610,28 @@ static void MiniRCTrackLeftBankedFlatToLeftBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19250), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19251), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19252), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19253), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -9821,43 +8655,28 @@ static void MiniRCTrackRightBankedFlatToRightBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19254), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19255), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19256), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19257), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -9881,43 +8700,28 @@ static void MiniRCTrackLeftBanked25DegUpToLeftBankedFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19258), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19259), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19260), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19261), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -9941,43 +8745,28 @@ static void MiniRCTrackRightBanked25DegUpToRightBankedFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19262), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19263), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19264), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19265), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -10037,11 +8826,6 @@ static void MiniRCTrackFlatToLeftBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19202), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -10050,33 +8834,23 @@ static void MiniRCTrackFlatToLeftBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19210), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19204), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19205), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -10100,21 +8874,11 @@ static void MiniRCTrackFlatToRightBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19206), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19207), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -10123,23 +8887,18 @@ static void MiniRCTrackFlatToRightBanked25DegUp( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19211), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19209), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -10163,11 +8922,6 @@ static void MiniRCTrackLeftBanked25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19212), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( @@ -10176,33 +8930,23 @@ static void MiniRCTrackLeftBanked25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19220), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19214), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19215), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -10226,21 +8970,11 @@ static void MiniRCTrackRightBanked25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19216), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19217), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 2: PaintAddImageAsParentRotated( @@ -10249,23 +8983,18 @@ static void MiniRCTrackRightBanked25DegUpToFlat( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19221), { 0, 0, height }, { { 0, 27, height }, { 32, 1, 34 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19219), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 12, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours); + } if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat); @@ -10322,28 +9051,22 @@ static void MiniRCTrackLeftCurvedLiftHill( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19333), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19335), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19337), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19331), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -10370,28 +9093,23 @@ static void MiniRCTrackLeftCurvedLiftHill( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19332), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19334), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19336), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19330), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 17, height, + session.SupportColours); switch (direction) { case 2: @@ -10426,28 +9144,22 @@ static void MiniRCTrackRightCurvedLiftHill( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19322), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19324), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19326), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19328), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 14, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 14, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); @@ -10474,28 +9186,23 @@ static void MiniRCTrackRightCurvedLiftHill( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19323), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19325), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19327), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(19329), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 17, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 17, height, + session.SupportColours); switch (direction) { case 0: @@ -10529,24 +9236,19 @@ static void MiniRCTrackBooster( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(SPR_G2_MINI_RC_BOOSTER_NE_SW), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(SPR_G2_MINI_RC_BOOSTER_NW_SE), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); - } break; } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours); + } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp index 41b1e02a22..06cf08dba4 100644 --- a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp @@ -69,19 +69,8 @@ static void MiniSuspendedRCTrackFlat( PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); } PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -176,27 +165,8 @@ static void MiniSuspendedRCTrack25DegUp( PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopRightSide, 0, height + 46, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 46, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomLeftSide, 0, height + 46, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 46, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopRightSide, direction, 0, height + 46, session.SupportColours); } if (direction == 0 || direction == 3) @@ -271,27 +241,8 @@ static void MiniSuspendedRCTrackFlatTo25DegUp( PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopRightSide, 0, height + 38, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomLeftSide, 0, height + 38, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopRightSide, direction, 0, height + 38, session.SupportColours); } if (direction == 0 || direction == 3) @@ -366,27 +317,8 @@ static void MiniSuspendedRCTrack25DegUpToFlat( PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopRightSide, 0, height + 38, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomRightSide, 0, height + 38, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomLeftSide, 0, height + 38, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopLeftSide, 0, height + 38, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopRightSide, direction, 0, height + 38, session.SupportColours); } if (direction == 0 || direction == 3) @@ -460,20 +392,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -606,20 +526,9 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height + 30, + session.SupportColours); switch (direction) { @@ -680,20 +589,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -733,12 +630,9 @@ static void MiniSuspendedRCTrackSBendLeft( switch (direction) { case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopLeftSide, 0, height + 30, session.SupportColours); - break; case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height + 30, session.SupportColours); break; } @@ -777,12 +671,9 @@ static void MiniSuspendedRCTrackSBendLeft( switch (direction) { case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopLeftSide, 0, height + 30, session.SupportColours); - break; case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height + 30, session.SupportColours); break; } @@ -818,20 +709,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); switch (direction) { @@ -883,20 +762,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -936,12 +803,9 @@ static void MiniSuspendedRCTrackSBendRight( switch (direction) { case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomRightSide, 0, height + 30, session.SupportColours); - break; case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height + 30, session.SupportColours); break; } @@ -980,12 +844,9 @@ static void MiniSuspendedRCTrackSBendRight( switch (direction) { case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomRightSide, 0, height + 30, session.SupportColours); - break; case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height + 30, session.SupportColours); break; } @@ -1021,20 +882,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); switch (direction) { @@ -1086,20 +935,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -1169,20 +1006,9 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height + 30, + session.SupportColours); switch (direction) { @@ -1247,20 +1073,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -1380,27 +1194,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintSegment::topRightSide, PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height + 30, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::LeftCorner, 0, height + 30, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height + 30, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::RightCorner, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 0, height + 30, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1447,20 +1242,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours); - break; - case 1: - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours); if (direction == 0 || direction == 3) { @@ -1580,27 +1363,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintSegment::topRightSide, PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 30, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 30, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 30, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 30, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 30, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1781,27 +1545,8 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 42, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 42, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 42, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1945,27 +1690,8 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 34, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 34, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 34, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2109,27 +1835,8 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 36, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 36, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, - session.SupportColours); - break; - } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 36, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2273,27 +1980,8 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 42, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 42, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 42, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 42, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 42, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2434,27 +2122,8 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 36, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 36, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 36, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 36, session.SupportColours); break; } @@ -2598,27 +2267,8 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintSegment::bottomLeftSide), direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height + 34, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::TopCorner, 0, height + 34, - session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height + 34, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 34, - session.SupportColours); - break; - } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 34, session.SupportColours); PaintUtilSetGeneralSupportHeight(session, height + 64); break; diff --git a/src/openrct2/paint/track/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp index ee24d4d73a..0e3d0e5d48 100644 --- a/src/openrct2/paint/track/coaster/Steeplechase.cpp +++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp @@ -43,15 +43,11 @@ static void SteeplechaseTrackFlat( case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28635), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } @@ -63,18 +59,16 @@ static void SteeplechaseTrackFlat( case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28633), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28634), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -116,26 +110,18 @@ static void SteeplechaseTrack25DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28649), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28655), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28651), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28656), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } } @@ -146,29 +132,23 @@ static void SteeplechaseTrack25DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28637), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28643), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28639), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28644), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 8, height, session.SupportColours); break; } } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart); @@ -193,26 +173,18 @@ static void SteeplechaseTrackFlatTo25DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28650), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28657), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28652), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28658), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; } } @@ -223,29 +195,24 @@ static void SteeplechaseTrackFlatTo25DegUp( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28638), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28645), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28640), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28646), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 2, height, session.SupportColours); break; } } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, direction == 0 ? 3 : 2, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -270,26 +237,18 @@ static void SteeplechaseTrack25DegUpToFlat( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28654), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28660), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28653), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28659), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; } } @@ -300,29 +259,24 @@ static void SteeplechaseTrack25DegUpToFlat( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28642), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28648), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 6, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28641), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28647), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 5, height, session.SupportColours); break; } } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, direction <= 1 ? 6 : 5, height, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat); @@ -378,8 +332,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28703), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( @@ -390,8 +344,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28693), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 1, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height - 1, session.SupportColours); break; } @@ -511,8 +465,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28694), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 3, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height - 3, session.SupportColours); break; case 1: @@ -524,8 +478,9 @@ static void SteeplechaseTrackLeftQuarterTurn5( case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28704), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 1, height, + session.SupportColours); break; case 3: PaintAddImageAsParentRotated( @@ -573,34 +528,30 @@ static void SteeplechaseTrackSBendLeft( switch (trackSequence) { case 0: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28665), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28672), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28668), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28669), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, - session.SupportColours); break; } + auto heightOffset = (direction == 3) ? 2 : 0; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, 0, direction, height - heightOffset, + session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -615,6 +566,7 @@ static void SteeplechaseTrackSBendLeft( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 1: switch (direction) { @@ -627,8 +579,8 @@ static void SteeplechaseTrackSBendLeft( case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28671), { 0, 0, height }, { 33, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height, session.SupportColours); break; case 2: @@ -670,8 +622,8 @@ static void SteeplechaseTrackSBendLeft( case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28671), { 0, 0, height }, { 33, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height, session.SupportColours); break; } @@ -691,29 +643,23 @@ static void SteeplechaseTrackSBendLeft( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28668), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28669), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28665), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28672), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height - ((direction == 1) ? 2 : 0), + session.SupportColours); switch (direction) { case 1: @@ -749,28 +695,22 @@ static void SteeplechaseTrackSBendRight( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28661), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28676), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28664), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28673), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -797,8 +737,8 @@ static void SteeplechaseTrackSBendRight( case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28675), { 0, 6, height }, { 33, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height, session.SupportColours); break; case 2: @@ -840,8 +780,8 @@ static void SteeplechaseTrackSBendRight( case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28675), { 0, 6, height }, { 33, 26, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height, session.SupportColours); break; } @@ -861,28 +801,22 @@ static void SteeplechaseTrackSBendRight( case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28664), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28673), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28661), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28676), { 0, 6, height }, { 33, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); switch (direction) { case 1: @@ -913,34 +847,31 @@ static void SteeplechaseTrackLeftQuarterTurn3( switch (trackSequence) { case 0: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28682), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28685), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 1, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28688), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28679), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 3, - session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 3, 1, 0, 0 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, _specialValues[direction], height, + session.SupportColours); + if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -955,6 +886,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } case 1: PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -989,33 +921,32 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 3: + { switch (direction) { case 0: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28680), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28683), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28686), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 3, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28677), { 6, 0, height }, { 20, 32, 3 }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height - 3, session.SupportColours); break; } + constexpr uint8_t _specialValues[] = { 0, 1, 3, 0 }; + constexpr int8_t _heightOffsets[] = { 0, 0, 0, -3 }; + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), _specialValues[direction], + height + _heightOffsets[direction], session.SupportColours); + switch (direction) { case 2: @@ -1035,6 +966,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; + } } } @@ -1058,16 +990,16 @@ static void SteeplechaseTrackBrakes( case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28635), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1087,31 +1019,25 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28725), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28729), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28733), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28737), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -1206,33 +1132,25 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28728), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28732), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::LeftCorner, 0, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28736), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopCorner, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28740), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::RightCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1260,31 +1178,25 @@ static void SteeplechaseTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28709), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28713), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28717), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28721), { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); @@ -1379,33 +1291,25 @@ static void SteeplechaseTrackRightEighthToDiag( PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28712), { 0, 0, height }, { { 16, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28716), { 0, 0, height }, { { 0, 0, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28720), { 0, 0, height }, { { 0, 16, height }, { 16, 18, 3 } }); - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28724), { 0, 0, height }, { { 16, 16, height }, { 16, 16, 3 } }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1579,26 +1483,10 @@ static void SteeplechaseTrackDiag25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28770), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } @@ -1606,29 +1494,15 @@ static void SteeplechaseTrackDiag25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28754), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1752,26 +1626,10 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28762), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } @@ -1779,29 +1637,15 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28746), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -1925,26 +1769,10 @@ static void SteeplechaseTrackDiag25DegUpToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28766), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } @@ -1952,29 +1780,15 @@ static void SteeplechaseTrackDiag25DegUpToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28750), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2098,26 +1912,10 @@ static void SteeplechaseTrackDiag25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28772), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } @@ -2125,29 +1923,15 @@ static void SteeplechaseTrackDiag25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 6, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28756), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 6, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 6, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 6, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2268,26 +2052,10 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28768), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } @@ -2295,29 +2063,15 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 4, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28752), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 4, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 4, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 4, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2442,26 +2196,10 @@ static void SteeplechaseTrackDiag25DegDownToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28764), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } @@ -2469,29 +2207,15 @@ static void SteeplechaseTrackDiag25DegDownToFlat( { switch (direction) { - case 0: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours); - break; case 1: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28748), { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopCorner, 0, height, - session.SupportColours); - break; - case 2: - MetalBSupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::RightCorner, 0, height, session.SupportColours); - break; - case 3: - MetalBSupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomCorner, 0, height, - session.SupportColours); break; } } + MetalBSupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( @@ -2516,16 +2240,15 @@ static void SteeplechaseTrackBlockBrakes( case 2: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28635), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; case 1: case 3: PaintAddImageAsParentRotated( session, direction, session.TrackColours.WithIndex(28636), { 0, 6, height }, { 32, 20, 3 }); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); break; } + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp index 839482da25..c25cc1c415 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp @@ -3622,7 +3622,7 @@ static void WoodenRCTrackLeftVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -3644,25 +3644,25 @@ static void WoodenRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23454), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23462), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23459), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23467), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3824,25 +3824,25 @@ static void WoodenRCTrackLeftVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23459), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23467), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23454), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23462), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; } PaintUtilSetSegmentSupportHeight( @@ -3876,7 +3876,7 @@ static void WoodenRCTrackLeftVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { case 1: @@ -3927,7 +3927,7 @@ static void WoodenRCTrackRightVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart); @@ -3941,25 +3941,25 @@ static void WoodenRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23483), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23475), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23478), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23470), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; } PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4081,25 +4081,25 @@ static void WoodenRCTrackRightVerticalLoop( PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23478), { 0, 14, height }, { 32, 2, 63 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 9, height, session.SupportColours); break; case 1: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23470), { 0, 0, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 20, height, session.SupportColours); break; case 2: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23483), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; case 3: PaintAddImageAsParentRotated( session, direction, WoodenRCGetRailsColour(session).WithIndex(23475), { 0, 6, height }, { 32, 26, 3 }); MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 16, height, session.SupportColours); break; } PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4125,7 +4125,7 @@ static void WoodenRCTrackRightVerticalLoop( break; } MetalASupportsPaintSetup( - session, MetalSupportGraphic::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); + session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours); switch (direction) { case 1: diff --git a/src/openrct2/paint/track/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp index f7e0888d90..0a2e736e76 100644 --- a/src/openrct2/paint/track/gentle/MonorailCycles.cpp +++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp @@ -456,22 +456,6 @@ static void PaintMonorailCyclesTrackSBendLeft( { PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } } else { @@ -479,22 +463,22 @@ static void PaintMonorailCyclesTrackSBendLeft( { PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat); } + } - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height - 2, session.SupportColours); - break; - } + switch (trackSequence) + { + case 0: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::TopLeftSide, direction & 1, 0, height, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; } switch (trackSequence) @@ -576,22 +560,6 @@ static void PaintMonorailCyclesTrackSBendRight( { PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::BottomRightSide, 0, height - 2, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } } else { @@ -599,23 +567,22 @@ static void PaintMonorailCyclesTrackSBendRight( { PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat); } - - switch (trackSequence) - { - case 0: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, - session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, MetalSupportGraphic::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours); - break; - } + } + switch (trackSequence) + { + case 0: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::BottomRightSide, direction & 1, 0, height - 2, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetupRotated( + session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); + break; } switch (trackSequence) diff --git a/src/openrct2/paint/track/thrill/MagicCarpet.cpp b/src/openrct2/paint/track/thrill/MagicCarpet.cpp index 11e10dfdd8..0d8732fc47 100644 --- a/src/openrct2/paint/track/thrill/MagicCarpet.cpp +++ b/src/openrct2/paint/track/thrill/MagicCarpet.cpp @@ -224,20 +224,7 @@ static void PaintMagicCarpet( { case 0: case 2: - if (direction & 1) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); - } - else - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); - } + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); const StationObject* stationObject = ride.GetStationObject(); if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) diff --git a/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp index ce1afa65a7..e29bd107f3 100644 --- a/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp +++ b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp @@ -138,20 +138,7 @@ static void PaintSwingingInverterShip( if (relativeTrackSequence != 1 && relativeTrackSequence != 3) { - if (direction & 1) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); - } - else - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); - } + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) { diff --git a/src/openrct2/paint/track/thrill/SwingingShip.cpp b/src/openrct2/paint/track/thrill/SwingingShip.cpp index 15512d7d5d..537363e518 100644 --- a/src/openrct2/paint/track/thrill/SwingingShip.cpp +++ b/src/openrct2/paint/track/thrill/SwingingShip.cpp @@ -169,29 +169,13 @@ static void PaintSwingingShip( WoodenASupportsPaintSetupRotated( session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height, session.SupportColours); } - else if (direction & 1) - { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours); - - if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) - { - imageId = session.SupportColours.WithIndex(SPR_STATION_BASE_A_NW_SE); - PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 1 }); - } - } else { - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours); - MetalASupportsPaintSetup( - session, MetalSupportGraphic::Tubes, MetalSupportPlace::BottomRightSide, 0, height, session.SupportColours); - + DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes); if (stationObject != nullptr && !(stationObject->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)) { - imageId = session.SupportColours.WithIndex(SPR_STATION_BASE_A_SW_NE); + ImageIndex base = (direction & 1) ? SPR_STATION_BASE_A_NW_SE : SPR_STATION_BASE_A_SW_NE; + imageId = session.SupportColours.WithIndex(base); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 1 }); } } diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index cad7b77609..a6be085795 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1910,7 +1910,8 @@ void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction dire direction), 0xFFFF, 0); } - MetalASupportsPaintSetup(session, MetalSupportGraphic::Tubes, MetalSupportPlace::Centre, 0, height, session.SupportColours); + MetalASupportsPaintSetupRotated( + session, MetalSupportType::Tubes, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours); if (direction != 2) { PaintUtilSetSegmentSupportHeight( From 7d24e2ee398818205e2238b79e86df98d112a397 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 17 Aug 2024 17:21:25 +0200 Subject: [PATCH 4/6] Make MetalSupportGraphic internal to MetalSupports.cpp --- src/openrct2/paint/support/MetalSupports.cpp | 64 +++++++++++++++++++- src/openrct2/paint/support/MetalSupports.h | 58 ------------------ 2 files changed, 61 insertions(+), 61 deletions(-) diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index 7e65d39a52..ee2cc66e3a 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -21,6 +21,56 @@ using namespace OpenRCT2; constexpr auto kMetalSupportSkip = 9 * 4 * 2; +// There are 13 types of metal support graphics, including rotated versions. A graphic showing all of them is available here: +// https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png +enum class MetalSupportGraphic : uint8_t +{ + /** + * Used by the Steel Twister, Looping RC, and other rides. + */ + Tubes = 0, + /** + * Used by the Junior RC and other rides. + */ + Fork = 1, + /** + * Rotated version of `Fork`. + */ + ForkAlt = 2, + /** + * Used by the vertical roller coasters, the Log Flume and other rides. + */ + Boxed = 3, + /** + * Used by the Steeplechase. + */ + Stick = 4, + /** + * No visible difference from `Stick`, also used by the Steeplechase + */ + StickAlt = 5, + /** + * Every “Thick” type seems to be used for the Looping Roller Coaster’s loop, and only for that specific part. + */ + ThickCentred = 6, + Thick = 7, + ThickAlt = 8, + ThickAltCentred = 9, + /** + * Used by the chairlift. + */ + Truss = 10, + /** + * Used by inverted rcs like the flying, lay-down, compact inverted. + * Mostly the same as `Tubes`, but with a thinner crossbeam. + */ + TubesInverted = 11, + /** + * Does not seem to be used in RCT2, but it was used in RCT1 for one of the path support types. + */ + BoxedCoated, +}; + /** rct2: 0x0097AF20, 0x0097AF21 */ // clang-format off static constexpr CoordsXY SupportBoundBoxes[] = { @@ -230,6 +280,14 @@ constexpr MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount MetalSupportGraphic::BoxedCoated }, }; +static bool MetalASupportsPaintSetup( + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate); +static bool MetalBSupportsPaintSetup( + PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, + ImageId imageTemplate); +static inline MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction); + /** * Metal pole supports * @param supportType (edi) @@ -239,7 +297,7 @@ constexpr MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount * @param imageTemplate (ebp) * rct2: 0x00663105 */ -bool MetalASupportsPaintSetup( +static bool MetalASupportsPaintSetup( PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate) { @@ -453,7 +511,7 @@ bool MetalASupportsPaintSetupRotated( * * @return (Carry Flag) */ -bool MetalBSupportsPaintSetup( +static bool MetalBSupportsPaintSetup( PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, ImageId imageTemplate) { @@ -641,7 +699,7 @@ bool MetalBSupportsPaintSetupRotated( return MetalBSupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate); } -MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction) +static inline MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction) { return kMetalSupportGraphicRotated[EnumValue(supportType)][direction]; } diff --git a/src/openrct2/paint/support/MetalSupports.h b/src/openrct2/paint/support/MetalSupports.h index db6748944e..19e79a627b 100644 --- a/src/openrct2/paint/support/MetalSupports.h +++ b/src/openrct2/paint/support/MetalSupports.h @@ -61,57 +61,6 @@ enum class MetalSupportType }; constexpr uint8_t kMetalSupportTypeCount = 8; -// There are 13 types of metal support graphics, including rotated versions. A graphic showing all of them is available here: -// https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png -// TODO Make this internal to MetalSupports.cpp -enum class MetalSupportGraphic : uint8_t -{ - /** - * Used by the Steel Twister, Looping RC, and other rides. - */ - Tubes = 0, - /** - * Used by the Junior RC and other rides. - */ - Fork = 1, - /** - * Rotated version of `Fork`. - */ - ForkAlt = 2, - /** - * Used by the vertical roller coasters, the Log Flume and other rides. - */ - Boxed = 3, - /** - * Used by the Steeplechase. - */ - Stick = 4, - /** - * No visible difference from `Stick`, also used by the Steeplechase - */ - StickAlt = 5, - /** - * Every “Thick” type seems to be used for the Looping Roller Coaster’s loop, and only for that specific part. - */ - ThickCentred = 6, - Thick = 7, - ThickAlt = 8, - ThickAltCentred = 9, - /** - * Used by the chairlift. - */ - Truss = 10, - /** - * Used by inverted rcs like the flying, lay-down, compact inverted. - * Mostly the same as `Tubes`, but with a thinner crossbeam. - */ - TubesInverted = 11, - /** - * Does not seem to be used in RCT2, but it was used in RCT1 for one of the path support types. - */ - BoxedCoated, -}; - /** * Tiles are rendered at a 45 degree angle, with the corners on the top, bottom, left and right. * This enum controls where the supports are rendered on the screen. @@ -142,9 +91,6 @@ enum class MetalSupportPlace : uint8_t struct FootpathPaintInfo; struct PaintSession; -bool MetalASupportsPaintSetup( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, - ImageId imageTemplate); /** @deprecated */ bool MetalASupportsPaintSetup( PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, @@ -152,9 +98,6 @@ bool MetalASupportsPaintSetup( bool MetalASupportsPaintSetupRotated( PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate); -bool MetalBSupportsPaintSetup( - PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height, - ImageId imageTemplate); /** @deprecated */ bool MetalBSupportsPaintSetup( PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height, @@ -162,7 +105,6 @@ bool MetalBSupportsPaintSetup( bool MetalBSupportsPaintSetupRotated( PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special, int32_t height, ImageId imageTemplate); -MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction); void DrawSupportsSideBySide( PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0); bool PathPoleSupportsPaintSetup( From c79eed65da7d2259373020dbdede5cd363353537 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 19 Aug 2024 21:01:22 +0200 Subject: [PATCH 5/6] =?UTF-8?q?Add=20space=20after=20=E2=80=9Cusing=20name?= =?UTF-8?q?space=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index 7bce52eacd..f8c880ee1a 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -24,6 +24,7 @@ #include "../../track/Support.h" using namespace OpenRCT2; + static constexpr uint32_t BM_BLOCK_BRAKE_SW_NE_OPEN = 17150; static constexpr uint32_t BM_BLOCK_BRAKE_NW_SE_OPEN = 17151; static constexpr uint32_t BM_BLOCK_BRAKE_SW_NE_CLOSED = 17152; From d54d95f4b0df517c027135b55bdd521a6257711b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 21 Aug 2024 14:59:00 +0200 Subject: [PATCH 6/6] Add assertion against invalid directions in RotateMetalSupportGraphic() --- src/openrct2/paint/support/MetalSupports.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index ee2cc66e3a..45a83fef36 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -701,6 +701,7 @@ bool MetalBSupportsPaintSetupRotated( static inline MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction) { + assert(direction < kNumOrthogonalDirections); return kMetalSupportGraphicRotated[EnumValue(supportType)][direction]; }