Merge pull request #22591 from Gymnasiast/refactor/metal-supports

Deduplicate metal supports
This commit is contained in:
Michael Steenbeek authored and GitHub committed 2024-08-21 23:06:50 +02:00
commit 8d88d72bf8
18 files changed
+1478 -4218

No files matched your search

+151 -76
View File
@@ -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[] = {
@@ -104,36 +154,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 +194,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,25 +266,28 @@ 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 MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount][kNumOrthogonalDirections] = {
{ MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes },
{ MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt },
{ MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed },
{ MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt },
{ MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred,
MetalSupportGraphic::ThickAltCentred },
{ MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss },
{ MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted,
MetalSupportGraphic::TubesInverted },
{ MetalSupportGraphic::BoxedCoated, MetalSupportGraphic::BoxedCoated, MetalSupportGraphic::BoxedCoated,
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)
@@ -244,8 +297,8 @@ constexpr MetalSupportType kMetalSupportTypeRotated[MetalSupportTypeCount][kNumO
* @param imageTemplate (ebp)
* rct2: 0x00663105
*/
bool MetalASupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
static bool MetalASupportsPaintSetup(
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate)
{
if (!(session.Flags & PaintSessionFlags::PassedSurface))
@@ -429,13 +482,21 @@ bool MetalASupportsPaintSetup(
return true;
}
bool MetalASupportsPaintSetupRotated(
PaintSession& session, MetalSupportType 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 = kMetalSupportTypeRotated[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);
}
/**
@@ -450,8 +511,8 @@ bool MetalASupportsPaintSetupRotated(
*
* @return (Carry Flag)
*/
bool MetalBSupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
static bool MetalBSupportsPaintSetup(
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate)
{
if (!(session.Flags & PaintSessionFlags::PassedSurface))
@@ -621,29 +682,43 @@ bool MetalBSupportsPaintSetup(
return false; // AND
}
bool MetalBSupportsPaintSetupRotated(
PaintSession& session, MetalSupportType 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 = kMetalSupportTypeRotated[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);
}
static inline MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction)
{
assert(direction < kNumOrthogonalDirections);
return kMetalSupportGraphicRotated[EnumValue(supportType)][direction];
}
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, MetalSupportType supportType, int32_t special)
{
type = kMetalSupportTypeRotated[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);
}
}
+26 -27
View File
@@ -14,55 +14,52 @@
#include <cstdint>
// 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
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,
/**
* Rotated version of `Fork`.
*/
ForkAlt = 2,
/**
* Used by the vertical roller coasters, the Log Flume and other rides.
*/
Boxed = 3,
Boxed = 2,
/**
* Used by the Steeplechase.
*/
Stick = 4,
Stick = 3,
/**
* No visible difference from `Stick`, also used by the Steeplechase
* Used for the Looping Roller Coaster’s loop, and only for that specific part.
*/
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,
Thick = 4,
/**
* Used by the chairlift.
*/
Truss = 10,
Truss = 5,
/**
* Used by inverted rcs like the flying, lay-down, compact inverted.
* Mostly the same as `Tubes`, but with a thinner crossbeam.
*/
TubesInverted = 11,
TubesInverted = 6,
/**
* Does not seem to be used in RCT2, but it was used in RCT1 for one of the path support types.
*/
BoxedCoated,
BoxedCoated = 7,
};
constexpr uint8_t kMetalSupportTypeCount = 8;
/**
* Tiles are rendered at a 45 degree angle, with the corners on the top, bottom, left and right.
@@ -94,18 +91,20 @@ enum class MetalSupportPlace : uint8_t
struct FootpathPaintInfo;
struct PaintSession;
/** @deprecated */
bool MetalASupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate);
bool MetalASupportsPaintSetupRotated(
PaintSession& session, MetalSupportType 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);
/** @deprecated */
bool MetalBSupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate);
bool MetalBSupportsPaintSetupRotated(
PaintSession& session, MetalSupportType 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);
void DrawSupportsSideBySide(
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0);
bool PathPoleSupportsPaintSetup(
File diff suppressed because it is too large. Load diff
@@ -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);
@@ -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);
@@ -9911,8 +9911,8 @@ static void FlyingRCTrackDiagBrakesInverted(
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, MetalSupportType::Boxed, kDiagSupportPlacement[direction], 0, height + 39, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 39, session.SupportColours);
}
PaintUtilSetGeneralSupportHeight(session, height + 48);
}
@@ -1865,9 +1865,8 @@ static void JuniorRCPaintTrackFlat(
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
}
PaintUtilSetSegmentSupportHeight(
@@ -2064,14 +2063,13 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::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) ? MetalSupportType::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 : MetalSupportType::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) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre,
supportSpecial[direction], height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), supportSpecial[direction],
height, session.SupportColours);
break;
}
@@ -2944,13 +2941,13 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 8, height,
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 8, height,
session.SupportColours);
break;
}
@@ -3096,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
{
@@ -3119,22 +3100,21 @@ static void JuniorRCSBendLeftPaintSetup(
{
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
}
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
break;
case 1:
MetalASupportsPaintSetup(
session, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours);
break;
case 3:
MetalASupportsPaintSetup(
session, MetalSupportType::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;
@@ -3206,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
{
@@ -3229,22 +3193,22 @@ static void JuniorRCSBendRightPaintSetup(
{
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
}
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
break;
case 1:
MetalASupportsPaintSetup(
session, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours);
break;
case 3:
MetalASupportsPaintSetup(
session, MetalSupportType::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;
@@ -3662,15 +3626,13 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup(
if (trackSequence == 0)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 6, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 6, height, session.SupportColours);
}
if (direction == 0 && trackSequence == 0)
@@ -3735,15 +3697,13 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup(
if (trackSequence == 0)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 2, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 2, height, session.SupportColours);
}
if (direction == 0 && trackSequence == 0)
@@ -3840,15 +3800,13 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup(
if (trackSequence == 0)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 7, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 7, height, session.SupportColours);
}
if (direction == 0 && trackSequence == 0)
@@ -3947,15 +3905,13 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup(
if (trackSequence == 0)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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 : MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 1, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 1, height, session.SupportColours);
}
if (direction == 0 && trackSequence == 0)
@@ -4155,23 +4111,13 @@ static void JuniorRCLeftEighthToDiagPaintSetup(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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)
MetalASupportsPaintSetup(
session, MetalSupportType::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);
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;
}
@@ -4228,23 +4174,13 @@ static void JuniorRCRightEighthToDiagPaintSetup(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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)
MetalASupportsPaintSetup(
session, MetalSupportType::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);
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;
}
@@ -4400,23 +4336,12 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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)
MetalASupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::BottomCorner, 0, height, session.SupportColours);
if (direction == 1)
MetalASupportsPaintSetup(
session, MetalSupportType::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);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::BottomCorner, direction, 0, height, session.SupportColours);
break;
}
@@ -4554,23 +4479,12 @@ static void JuniorRCRightEighthToDiagBankPaintSetup(
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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)
MetalASupportsPaintSetup(
session, supportType.metal, MetalSupportPlace::LeftCorner, 0, height, session.SupportColours);
if (direction == 1)
MetalASupportsPaintSetup(
session, MetalSupportType::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);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
break;
}
@@ -4654,9 +4568,8 @@ static void JuniorRCTrackDiagBrakes(
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4674,9 +4587,8 @@ static void JuniorRCTrackDiagBlockBrakes(
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4696,9 +4608,8 @@ static void JuniorRCPaintTrackDiag25DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4718,9 +4629,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4741,9 +4651,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height + 6, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 6, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4763,9 +4672,8 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4786,9 +4694,8 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height + 13, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height + 13, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4808,9 +4715,8 @@ static void JuniorRCPaintTrackDiag25DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4830,9 +4736,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4853,9 +4758,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height + 7, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height + 7, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4875,9 +4779,8 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4898,9 +4801,8 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4925,9 +4827,8 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup(
}
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4952,9 +4853,8 @@ static void JuniorRCDiagFlatToRightBankPaintSetup(
}
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -4979,9 +4879,8 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup(
}
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5006,9 +4905,8 @@ static void JuniorRCDiagRightBankToFlatPaintSetup(
}
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5033,9 +4931,8 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5060,9 +4957,8 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5087,9 +4983,8 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5114,9 +5009,8 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5141,9 +5035,8 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5168,9 +5061,8 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 4, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5195,9 +5087,8 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5222,9 +5113,8 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup(
}
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5258,9 +5148,8 @@ static void JuniorRCDiagLeftBankPaintSetup(
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5280,9 +5169,8 @@ static void JuniorRCDiagRightBankPaintSetup(
if (trackSequence == 3)
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5351,9 +5239,9 @@ static void JuniorRCPaintTrack60DegUp(
static constexpr int8_t support[4] = { 35, 29, 25, 32 };
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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(
@@ -5437,9 +5325,9 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp(
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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(
@@ -5501,9 +5389,8 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp(
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours);
}
PaintUtilSetSegmentSupportHeight(
@@ -5534,9 +5421,8 @@ static void JuniorRCPaintTrackDiag60DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 36,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 36, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5557,9 +5443,8 @@ static void JuniorRCPaintTrackDiag60DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 28,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 28, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5580,9 +5465,8 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 16,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 16, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5613,9 +5497,8 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 21,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 21, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5646,9 +5529,8 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 17,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 17, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5669,9 +5551,8 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown(
if (trackSequence == 3)
{
MetalBSupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
height, session.SupportColours);
MetalBSupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 8, height, session.SupportColours);
}
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
@@ -5757,9 +5638,9 @@ static void JuniorRCFlatTo60DegUpPaintSetup(
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::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(
@@ -5819,9 +5700,8 @@ static void JuniorRC60DegUpToFlatPaintSetup(
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? MetalSupportType::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height - 5,
session.SupportColours);
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height - 5, session.SupportColours);
}
PaintUtilSetSegmentSupportHeight(
@@ -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, MetalSupportType::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, MetalSupportType::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,8 +2377,9 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
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);
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 } });
@@ -2387,9 +2388,9 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
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.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 } });
@@ -2478,8 +2479,9 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
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);
MetalASupportsPaintSetupRotated(
session, MetalSupportType::Thick, MetalSupportPlace::RightCorner, direction, 0, height - 8,
session.TrackColours);
PaintAddImageAsChildRotated(
session, direction, session.TrackColours.WithIndex(15365), { 10, 16, height },
{ { 10, 16, height }, { 4, 16, 119 } });
@@ -2488,8 +2490,8 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15361), { 16, 16, height },
{ { 16, 16, height }, { 2, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2499,8 +2501,8 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15350), { 16, 0, height },
{ { 16, 0, height }, { 3, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2510,8 +2512,8 @@ static void LoopingRCTrackLeftVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15358), { 12, 0, height },
{ { 12, 0, height }, { 3, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2662,8 +2664,9 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
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);
MetalASupportsPaintSetupRotated(
session, MetalSupportType::Thick, MetalSupportPlace::BottomCorner, direction, 0, height - 8,
session.TrackColours);
PaintAddImageAsChildRotated(
session, direction, session.TrackColours.WithIndex(15384), { 16, 16, height },
{ { 16, 16, height }, { 2, 16, 119 } });
@@ -2672,8 +2675,8 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15373), { 10, 16, height },
{ { 10, 16, height }, { 4, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2683,8 +2686,8 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15378), { 12, 0, height },
{ { 12, 0, height }, { 3, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2694,8 +2697,8 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours.WithIndex(15370), { 16, 0, height },
{ { 16, 0, height }, { 2, 16, 119 } });
MetalASupportsPaintSetup(
session, MetalSupportType::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 },
@@ -2761,9 +2764,9 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
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.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 } });
@@ -2772,9 +2775,9 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
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.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 } });
@@ -2783,8 +2786,9 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
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);
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 } });
@@ -2793,9 +2797,9 @@ static void LoopingRCTrackRightVerticalLoop(
PaintAddImageAsParentRotated(
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.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 } });
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -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, MetalSupportType::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,26 +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, MetalSupportType::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, MetalSupportType::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)
@@ -270,26 +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, MetalSupportType::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, MetalSupportType::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)
@@ -364,26 +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, MetalSupportType::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, MetalSupportType::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)
@@ -457,19 +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, MetalSupportType::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)
{
@@ -602,19 +526,9 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5(
PaintSegment::bottomRightSide),
direction),
0xFFFF, 0);
switch (direction)
{
case 0:
case 2:
MetalASupportsPaintSetup(
session, MetalSupportType::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)
{
@@ -675,19 +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, MetalSupportType::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)
{
@@ -727,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, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30,
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height + 30,
session.SupportColours);
break;
}
@@ -771,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, MetalSupportType::ForkAlt, MetalSupportPlace::TopRightSide, 0, height + 30,
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height + 30,
session.SupportColours);
break;
}
@@ -812,19 +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, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours);
break;
}
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours);
switch (direction)
{
@@ -876,19 +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, MetalSupportType::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)
{
@@ -928,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, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30,
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::BottomRightSide, direction, 0, height + 30,
session.SupportColours);
break;
}
@@ -972,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, MetalSupportType::ForkAlt, MetalSupportPlace::BottomLeftSide, 0, height + 30,
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::TopLeftSide, direction, 0, height + 30,
session.SupportColours);
break;
}
@@ -1013,19 +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, MetalSupportType::ForkAlt, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours);
break;
}
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height + 30, session.SupportColours);
switch (direction)
{
@@ -1077,19 +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, MetalSupportType::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)
{
@@ -1159,19 +1006,9 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3(
PaintSegment::bottomRightSide),
direction),
0xFFFF, 0);
switch (direction)
{
case 0:
case 2:
MetalASupportsPaintSetup(
session, MetalSupportType::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)
{
@@ -1236,19 +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, MetalSupportType::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)
{
@@ -1368,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, MetalSupportType::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, MetalSupportType::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;
@@ -1435,19 +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, MetalSupportType::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)
{
@@ -1567,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, MetalSupportType::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, MetalSupportType::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;
@@ -1768,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, MetalSupportType::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, MetalSupportType::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;
@@ -1932,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, MetalSupportType::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, MetalSupportType::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;
@@ -2096,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, MetalSupportType::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, MetalSupportType::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;
@@ -2260,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, MetalSupportType::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, MetalSupportType::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;
@@ -2421,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, MetalSupportType::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, MetalSupportType::ForkAlt, MetalSupportPlace::BottomCorner, 0, height + 36,
session.SupportColours);
break;
}
MetalASupportsPaintSetupRotated(
session, supportType.metal, MetalSupportPlace::LeftCorner, direction, 0, height + 36, session.SupportColours);
break;
}
@@ -2585,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, MetalSupportType::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, MetalSupportType::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;
File diff suppressed because it is too large. Load diff
@@ -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;
@@ -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, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
break;
case 1:
MetalASupportsPaintSetup(
session, MetalSupportType::StickAlt, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours);
break;
case 3:
MetalASupportsPaintSetup(
session, MetalSupportType::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,22 +567,22 @@ static void PaintMonorailCyclesTrackSBendRight(
{
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
}
switch (trackSequence)
{
case 0:
MetalASupportsPaintSetup(
session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
break;
case 1:
MetalASupportsPaintSetup(
session, MetalSupportType::StickAlt, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours);
break;
case 3:
MetalASupportsPaintSetup(
session, MetalSupportType::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)
@@ -224,20 +224,7 @@ static void PaintMagicCarpet(
{
case 0:
case 2:
if (direction & 1)
{
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours);
}
else
{
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::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))
@@ -138,20 +138,7 @@ static void PaintSwingingInverterShip(
if (relativeTrackSequence != 1 && relativeTrackSequence != 3)
{
if (direction & 1)
{
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::BottomLeftSide, 0, height, session.SupportColours);
}
else
{
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::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))
{
@@ -169,29 +169,13 @@ static void PaintSwingingShip(
WoodenASupportsPaintSetupRotated(
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
}
else if (direction & 1)
{
MetalASupportsPaintSetup(
session, MetalSupportType::Tubes, MetalSupportPlace::TopRightSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::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, MetalSupportType::Tubes, MetalSupportPlace::TopLeftSide, 0, height, session.SupportColours);
MetalASupportsPaintSetup(
session, MetalSupportType::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 });
}
}
+2 -1
View File
@@ -1910,7 +1910,8 @@ void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction dire
direction),
0xFFFF, 0);
}
MetalASupportsPaintSetup(session, MetalSupportType::Tubes, MetalSupportPlace::Centre, 0, height, session.SupportColours);
MetalASupportsPaintSetupRotated(
session, MetalSupportType::Tubes, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
if (direction != 2)
{
PaintUtilSetSegmentSupportHeight(