From 806386cd20bdf35eae959d41971ecc93c0ff8e80 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 20 Sep 2026 15:31:50 +0200 Subject: [PATCH] Create FlagHolder for PaintSegments (#27131) --- src/openrct2/core/FlagHolder.hpp | 11 +- .../paint/tile_element/Paint.Path.cpp | 13 +- .../paint/tile_element/Paint.SmallScenery.cpp | 15 +- .../paint/tile_element/Paint.Surface.cpp | 165 +- .../paint/tile_element/Paint.TileElement.cpp | 18 +- .../paint/tile_element/Paint.TileElement.h | 8 +- src/openrct2/paint/tile_element/Segment.h | 36 +- src/openrct2/paint/track/Segment.h | 14 +- .../coaster/AirPoweredVerticalCoaster.cpp | 42 +- .../paint/track/coaster/AlpineCoaster.cpp | 583 +++--- .../paint/track/coaster/BobsleighCoaster.cpp | 223 +-- .../coaster/ClassicStandUpRollerCoaster.cpp | 86 +- .../coaster/ClassicWoodenRollerCoaster.cpp | 29 +- .../track/coaster/CompactInvertedCoaster.cpp | 814 ++++----- .../track/coaster/CorkscrewRollerCoaster.cpp | 1591 +++++++--------- .../track/coaster/FlyingRollerCoaster.cpp | 51 +- .../coaster/FlyingRollerCoasterInverted.cpp | 789 ++++---- .../paint/track/coaster/HybridCoaster.cpp | 252 ++- .../track/coaster/InvertedHairpinCoaster.cpp | 35 +- .../track/coaster/InvertedRollerCoaster.cpp | 1604 +++++++---------- .../track/coaster/JuniorRollerCoaster.cpp | 456 ++--- .../track/coaster/LatticeTriangleTrack.cpp | 1477 ++++++--------- .../coaster/LayDownRollerCoasterInverted.cpp | 730 +++----- .../coaster/LimLaunchedRollerCoaster.cpp | 375 ++-- .../track/coaster/LoopingRollerCoaster.cpp | 710 +++----- src/openrct2/paint/track/coaster/MineRide.cpp | 515 ++---- .../paint/track/coaster/MineTrainCoaster.cpp | 359 ++-- .../paint/track/coaster/MiniRollerCoaster.cpp | 686 +++---- .../track/coaster/MiniSuspendedCoaster.cpp | 173 +- .../coaster/MultiDimensionRollerCoaster.cpp | 483 ++--- .../MultiDimensionRollerCoasterInverted.cpp | 571 +++--- .../track/coaster/ReverserRollerCoaster.cpp | 44 +- .../coaster/SideFrictionRollerCoaster.cpp | 44 +- .../track/coaster/SingleRailRollerCoaster.cpp | 1469 ++++++--------- .../track/coaster/StandUpRollerCoaster.cpp | 1288 +++++-------- .../paint/track/coaster/Steeplechase.cpp | 160 +- .../coaster/SuspendedSwingingCoaster.cpp | 394 ++-- .../track/coaster/TwisterRollerCoaster.cpp | 1571 ++++++---------- .../paint/track/coaster/VirginiaReel.cpp | 3 +- .../paint/track/coaster/WildMouse.cpp | 30 +- .../track/coaster/WoodenRollerCoaster.cpp | 254 +-- .../track/coaster/WoodenRollerCoaster.hpp | 250 +-- .../paint/track/coaster/WoodenWildMouse.cpp | 11 +- src/openrct2/paint/track/gentle/CarRide.cpp | 44 +- src/openrct2/paint/track/gentle/Circus.cpp | 12 +- .../paint/track/gentle/CrookedHouse.cpp | 12 +- .../paint/track/gentle/GhostTrain.cpp | 32 +- .../paint/track/gentle/HauntedHouse.cpp | 12 +- src/openrct2/paint/track/gentle/Maze.cpp | 4 +- .../paint/track/gentle/MerryGoRound.cpp | 12 +- src/openrct2/paint/track/gentle/MiniGolf.cpp | 18 +- .../paint/track/gentle/MiniHelicopters.cpp | 26 +- .../paint/track/gentle/MonorailCycles.cpp | 59 +- .../paint/track/gentle/ObservationTower.cpp | 30 +- .../paint/track/gentle/SpaceRings.cpp | 33 +- src/openrct2/paint/track/thrill/3dCinema.cpp | 12 +- .../paint/track/thrill/Enterprise.cpp | 12 +- src/openrct2/paint/track/thrill/GoKarts.cpp | 105 +- .../paint/track/thrill/LaunchedFreefall.cpp | 30 +- src/openrct2/paint/track/thrill/RotoDrop.cpp | 30 +- src/openrct2/paint/track/thrill/TopSpin.cpp | 12 +- src/openrct2/paint/track/thrill/Twist.cpp | 12 +- .../paint/track/transport/Chairlift.cpp | 14 +- src/openrct2/paint/track/transport/Lift.cpp | 30 +- .../track/transport/MiniatureRailway.cpp | 52 +- .../paint/track/transport/Monorail.cpp | 141 +- .../track/transport/SuspendedMonorail.cpp | 168 +- src/openrct2/paint/track/water/BoatHire.cpp | 7 +- .../paint/track/water/DinghySlide.cpp | 90 +- .../paint/track/water/DinghySlideCovered.cpp | 90 +- src/openrct2/paint/track/water/LogFlume.cpp | 48 +- .../paint/track/water/SplashBoats.cpp | 62 +- .../paint/track/water/SubmarineRide.cpp | 14 +- src/openrct2/ride/TrackData.cpp | 1074 ++++++----- src/openrct2/ride/TrackPaint.cpp | 45 +- src/openrct2/ride/ted/TED.Corkscrew.h | 66 +- src/openrct2/ride/ted/TED.DiveLoop.h | 36 +- src/openrct2/ride/ted/TED.HalfHelix.h | 124 +- src/openrct2/ride/ted/TED.LongBase.h | 120 +- src/openrct2/ride/ted/TED.Loop.h | 382 ++-- src/openrct2/ride/ted/TED.SBend.h | 16 +- src/openrct2/ride/ted/TED.ZeroG.h | 42 +- .../ride/ted/TrackElementDescriptor.h | 8 +- 83 files changed, 8518 insertions(+), 13050 deletions(-) diff --git a/src/openrct2/core/FlagHolder.hpp b/src/openrct2/core/FlagHolder.hpp index 212381fb3e..52c63941b5 100644 --- a/src/openrct2/core/FlagHolder.hpp +++ b/src/openrct2/core/FlagHolder.hpp @@ -68,7 +68,7 @@ struct FlagHolder } template - [[nodiscard]] constexpr FlagHolder with(TTypes... types) + [[nodiscard]] constexpr FlagHolder with(TTypes... types) const { FlagHolder res = *this; res.set(types...); @@ -76,13 +76,20 @@ struct FlagHolder } template - [[nodiscard]] constexpr FlagHolder without(TTypes... types) + [[nodiscard]] constexpr FlagHolder without(TTypes... types) const { FlagHolder res = *this; res.unset(types...); return res; } + [[nodiscard]] constexpr FlagHolder without(const FlagHolder& other) const + { + FlagHolder res = *this; + res.holder &= ~other.holder; + return res; + } + /** * For situations where you don’t know upfront whether to set or unset the flag, * e.g. in game actions where this is passed as a variable. diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 08604c1814..e17448e6c1 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -884,32 +884,31 @@ static void PathPaintSegmentSupportHeight( if (pathElement.getEdgesAndCorners() == 0xFF) { PaintUtilSetSegmentSupportHeight( - session, - EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + session, { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, 0xFFFF, 0); return; } - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, 0xFFFF, 0); if (edges & EDGE_NE) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::topRight), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::topRight, 0xFFFF, 0); } if (edges & EDGE_SE) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottomRight), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottomRight, 0xFFFF, 0); } if (edges & EDGE_SW) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottomLeft), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottomLeft, 0xFFFF, 0); } if (edges & EDGE_NW) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::topLeft), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::topLeft, 0xFFFF, 0); } } diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp index 16486a1e30..27c2591832 100644 --- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp @@ -10,7 +10,6 @@ #include "../Paint.h" #include "../../GameState.h" -#include "../../core/EnumUtils.hpp" #include "../../interface/Viewport.h" #include "../../object/SmallSceneryEntry.h" #include "../../profiling/Profiling.h" @@ -78,10 +77,10 @@ static void SetSupportHeights( { if (sceneryEntry.flags.has(SmallSceneryFlag::occupiesFullTile)) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), height, 0x20); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, height, 0x20); if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), height, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), height, 0x20); } } else if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) @@ -89,25 +88,23 @@ static void SetSupportHeights( auto direction = (sceneryElement.getSceneryQuadrant() + session.CurrentRotation) % 4; PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), height, 0x20); } } else if (sceneryEntry.flags.hasAny(SmallSceneryFlag::flag27, SmallSceneryFlag::occupiesFullTile)) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, 0xFFFF, 0); if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), 0xFFFF, 0); } } else if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { auto direction = (sceneryElement.getSceneryQuadrant() + session.CurrentRotation) % 4; PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); } } diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index 88af928ea0..ae8ef6812e 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -1356,12 +1356,12 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 1B 1B // 1B PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), height, 0); + session, { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 1); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 1); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 6 + 6, 0x1B); PaintUtilForceSetGeneralSupportHeight(session, height, 1); break; @@ -1373,12 +1373,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 17 00 // 02 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), height, 0); + session, { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 2); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 6, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 6 + 6, 0x17); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 2); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 6 + 6, 0x17); PaintUtilForceSetGeneralSupportHeight(session, height, 2); break; @@ -1390,13 +1389,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 03 03 // 03 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right), height + 2, 3); + session, { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }, height + 2, 3); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight), height + 2 + 6, - 3); + session, { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight }, height + 2 + 6, 3); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom), height + 2 + 6 + 6, - 3); + session, { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }, height + 2 + 6 + 6, 3); PaintUtilForceSetGeneralSupportHeight(session, height, 3); break; @@ -1408,12 +1405,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 00 00 // 00 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomLeft, PaintSegment::bottomRight), height, 0); + session, { PaintSegment::bottom, PaintSegment::bottomLeft, PaintSegment::bottomRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 4); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 6, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 6 + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 4); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 6 + 6, 0x1E); PaintUtilForceSetGeneralSupportHeight(session, height, 4); break; @@ -1424,14 +1420,13 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 05 05 05 ░░ ░░ ░░ // 1B 1B ▒▒ ▒▒ // 1B ▓▓ - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 5); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 5); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 6 + 6, 0x1B); PaintUtilForceSetGeneralSupportHeight(session, height, 5); break; @@ -1443,12 +1438,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 06 06 ▒▒ ░░ // 06 ░░ PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom), height + 2, 6); + session, { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }, height + 2, 6); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), height + 2 + 6, - 6); + session, { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, height + 2 + 6, 6); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::top), height + 2 + 6 + 6, 6); + session, { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }, height + 2 + 6 + 6, 6); PaintUtilForceSetGeneralSupportHeight(session, height, 6); break; @@ -1459,26 +1453,24 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 00 07 17 ▓▓ ▓▓ ░░ // 00 17 ▓▓ ▒▒ // 07 ▓▓ - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6, 0x17); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 7); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 7); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left), height + 4 + 6 + 6, - 0); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left }, height + 4 + 6 + 6, 0); PaintUtilForceSetGeneralSupportHeight(session, height, 7); break; case 8: // Loc6620D8 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft), height, 0); + session, { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 8); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 8); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 6 + 6, 0x1D); PaintUtilForceSetGeneralSupportHeight(session, height, 8); break; @@ -1486,128 +1478,119 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // Loc66216D PaintUtilForceSetGeneralSupportHeight(session, height, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left), height + 2, 9); + session, { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }, height + 2, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), height + 2 + 6, - 9); + session, { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, height + 2 + 6, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right), height + 2 + 6 + 6, - 9); + session, { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }, height + 2 + 6 + 6, 9); break; case 10: // Loc662206 PaintUtilForceSetGeneralSupportHeight(session, height, 0xA); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 6, 0x17); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 0xA); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 0xA); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 6 + 6, 0x1D); break; case 11: // Loc66229B PaintUtilForceSetGeneralSupportHeight(session, height, 0xB); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6, 0x1B); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0xB); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0xB); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::bottom), - height + 4 + 6 + 6, 0); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::bottom }, height + 4 + 6 + 6, 0); break; case 12: // Loc662334 PaintUtilForceSetGeneralSupportHeight(session, height, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom), height + 2, 0xC); + session, { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }, height + 2, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight), height + 2 + 6, - 0xC); + session, { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight }, height + 2 + 6, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right), height + 2 + 6 + 6, 0xC); + session, { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }, height + 2 + 6 + 6, 0xC); break; case 13: // Loc6623CD PaintUtilForceSetGeneralSupportHeight(session, height, 0xD); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6, 0x1D); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0xD); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0xD); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), - height + 4 + 6 + 6, 0); + session, { PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, height + 4 + 6 + 6, 0); break; case 14: // Loc662466 PaintUtilForceSetGeneralSupportHeight(session, height, 0xE); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6, 0x1E); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0xE); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0xE); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::top), height + 4 + 6 + 6, 0); + session, { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::top }, height + 4 + 6 + 6, 0); break; case 23: // Loc6624FF PaintUtilForceSetGeneralSupportHeight(session, height, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6, 0x17); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0x17); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6 + 6 + 6, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4 + 6 + 6 + 6 + 6, 0x17); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6 + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4 + 6 + 6 + 6 + 6, 0x17); break; case 27: // Loc6625A0 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6, 0x1B); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0x1B); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6 + 6 + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4 + 6 + 6 + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6 + 6 + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4 + 6 + 6 + 6 + 6, 0x1B); break; case 29: // Loc662641 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6, 0x1D); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6 + 6 + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4 + 6 + 6 + 6 + 6, 0x1D); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6 + 6 + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4 + 6 + 6 + 6 + 6, 0x1D); break; case 30: // Loc6626E2 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6, 0x1E); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6 + 6 + 6, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4 + 6 + 6 + 6 + 6, 0x1E); + session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6 + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4 + 6 + 6 + 6 + 6, 0x1E); break; } } diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index f4e8e0b71e..9df4d66757 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -353,18 +353,16 @@ void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height session.Support.slope = slope; } -const uint16_t kSegmentOffsets[9] = { - EnumToFlag(PaintSegment::top), EnumToFlag(PaintSegment::left), EnumToFlag(PaintSegment::right), - EnumToFlag(PaintSegment::bottom), EnumToFlag(PaintSegment::centre), EnumToFlag(PaintSegment::topLeft), - EnumToFlag(PaintSegment::topRight), EnumToFlag(PaintSegment::bottomLeft), EnumToFlag(PaintSegment::bottomRight), -}; +const PaintSegment kSegmentOffsets[9] = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; -void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope) +void PaintUtilSetSegmentSupportHeight(PaintSession& session, PaintSegments segments, uint16_t height, uint8_t slope) { SupportHeight* supportSegments = session.SupportSegments; for (std::size_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (segments & kSegmentOffsets[s]) + if (segments.has(kSegmentOffsets[s])) { supportSegments[s].height = height; if (height != 0xFFFF) @@ -375,13 +373,13 @@ void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, u } } -uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation) +PaintSegments PaintUtilRotateSegments(PaintSegments segments, uint8_t rotation) { // Only the value representing PaintSegment::centre falls beyond 0xFF, so this will be kept in place. - uint8_t temp = segments & 0xFF; + uint8_t temp = segments.holder & 0xFF; temp = Numerics::rol8(temp, rotation * 2); - return (segments & 0xFF00) | temp; + return PaintSegments(static_cast((segments.holder & 0xFF00) | temp)); } bool PaintShouldShowHeightMarkers(const PaintSession& session, const ViewportFlag viewportFlag) diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.h b/src/openrct2/paint/tile_element/Paint.TileElement.h index d084cf304b..e09434a760 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.h +++ b/src/openrct2/paint/tile_element/Paint.TileElement.h @@ -9,6 +9,8 @@ #pragma once +#include "Segment.h" + #include struct CoordsXY; @@ -26,7 +28,7 @@ enum edge_t EDGE_TOPRIGHT = EDGE_NE }; -extern const uint16_t kSegmentOffsets[9]; +extern const OpenRCT2::PaintSegment kSegmentOffsets[9]; extern bool gShowSupportSegmentHeights; @@ -41,8 +43,8 @@ namespace OpenRCT2 void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height); void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope); -void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope); -uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation); +void PaintUtilSetSegmentSupportHeight(PaintSession& session, OpenRCT2::PaintSegments segments, uint16_t height, uint8_t slope); +OpenRCT2::PaintSegments PaintUtilRotateSegments(OpenRCT2::PaintSegments segments, uint8_t rotation); void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false); diff --git a/src/openrct2/paint/tile_element/Segment.h b/src/openrct2/paint/tile_element/Segment.h index 3f3490b7f2..25748b149f 100644 --- a/src/openrct2/paint/tile_element/Segment.h +++ b/src/openrct2/paint/tile_element/Segment.h @@ -10,6 +10,7 @@ #pragma once #include "../../core/EnumUtils.hpp" +#include "../../core/FlagHolder.hpp" #include "../../core/Numerics.hpp" #include @@ -31,25 +32,28 @@ namespace OpenRCT2 topLeft = 7, centre = 8, }; - constexpr uint16_t kSegmentsNone = 0; - constexpr int32_t kSegmentsAll = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); - constexpr uint16_t kSegmentsUnimplemented = kSegmentsNone; + using PaintSegments = FlagHolder; + constexpr PaintSegments kSegmentsNone{}; + constexpr PaintSegments kSegmentsAll = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; + constexpr PaintSegments kSegmentsUnimplemented = kSegmentsNone; - constexpr uint16_t paintSegmentsRotate(const uint16_t segments, const uint8_t rotation) + constexpr PaintSegments paintSegmentsRotate(PaintSegments segments, const uint8_t rotation) { - uint8_t outerSegments = segments & 0xFF; + uint8_t outerSegments = segments.holder & 0xFF; outerSegments = Numerics::rol8(outerSegments, rotation * 2); - return (segments & EnumToFlag(PaintSegment::centre)) | outerSegments; + segments.holder = static_cast((segments.holder & EnumToFlag(PaintSegment::centre)) | outerSegments); + return segments; } - constexpr uint16_t paintSegmentsFlipXAxis(const uint16_t segments) + constexpr PaintSegments paintSegmentsFlipXAxis(PaintSegments segments) { - uint8_t outerSegments = segments & 0xFF; + uint8_t outerSegments = segments.holder & 0xFF; outerSegments = (outerSegments * 0x0202020202 & 0x010884422010) % 1023; // reverse the bits, std::byteswap is c++23 outerSegments = Numerics::rol8(outerSegments, 3); - return (segments & EnumToFlag(PaintSegment::centre)) | outerSegments; + segments.holder = static_cast((segments.holder & EnumToFlag(PaintSegment::centre)) | outerSegments); + return segments; } enum class BlockedSegmentsType : uint8_t @@ -60,13 +64,13 @@ namespace OpenRCT2 }; constexpr uint32_t kBlockedSegmentsTypeCount = 3; - constexpr std::array blockedSegmentsAllTypes(const uint16_t segments) + constexpr std::array blockedSegmentsAllTypes(const PaintSegments segments) { return { segments, segments, segments }; } - constexpr std::array blockedSegmentsRotate( - std::array blockedSegments, const uint8_t rotation) + constexpr std::array blockedSegmentsRotate( + std::array blockedSegments, const uint8_t rotation) { for (auto& segments : blockedSegments) { @@ -75,8 +79,8 @@ namespace OpenRCT2 return blockedSegments; } - constexpr std::array blockedSegmentsFlipXAxis( - std::array blockedSegments) + constexpr std::array blockedSegmentsFlipXAxis( + std::array blockedSegments) { for (auto& segments : blockedSegments) { diff --git a/src/openrct2/paint/track/Segment.h b/src/openrct2/paint/track/Segment.h index 043a884079..a73ccd9edc 100644 --- a/src/openrct2/paint/track/Segment.h +++ b/src/openrct2/paint/track/Segment.h @@ -11,15 +11,13 @@ #include "../tile_element/Segment.h" -#include - namespace OpenRCT2::BlockedSegments { - constexpr uint16_t kStraightFlat = EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); - constexpr uint16_t kDiagStraightFlat[] = { - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, PaintSegment::top), - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft), + constexpr PaintSegments kStraightFlat = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; + constexpr PaintSegments kDiagStraightFlat[] = { + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, PaintSegment::top }, + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }, }; } // namespace OpenRCT2::BlockedSegments diff --git a/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp index 1fcd020fb7..4f9258a6ba 100644 --- a/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp @@ -260,17 +260,15 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -278,26 +276,23 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -455,17 +450,15 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -473,26 +466,23 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp index 64004e8cee..a22684ad32 100644 --- a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp @@ -464,7 +464,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -499,7 +499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -543,8 +543,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -599,7 +598,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -634,9 +633,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -668,8 +666,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -704,9 +701,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -750,8 +746,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -834,9 +829,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -868,9 +862,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -879,7 +872,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -915,9 +908,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -992,9 +984,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1026,9 +1017,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1037,8 +1027,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1073,9 +1062,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1148,8 +1136,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1182,8 +1169,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1215,8 +1201,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1251,7 +1236,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1293,8 +1278,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1327,8 +1311,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1360,8 +1343,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1396,7 +1378,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1438,8 +1420,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1472,8 +1453,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1505,8 +1485,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1545,7 +1524,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1587,8 +1566,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1621,8 +1599,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1654,8 +1631,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1690,7 +1666,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1732,8 +1708,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1765,8 +1740,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1797,8 +1771,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1832,7 +1805,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1875,8 +1848,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1909,8 +1881,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1942,8 +1913,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1978,7 +1948,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2384,8 +2354,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2407,8 +2376,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2425,8 +2393,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2446,7 +2413,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2473,8 +2440,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2492,8 +2458,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2514,8 +2479,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2535,7 +2499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2562,8 +2526,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2585,8 +2548,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2603,8 +2565,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2624,7 +2585,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2651,8 +2612,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2670,8 +2630,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2692,8 +2651,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2713,7 +2671,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2740,8 +2698,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2763,8 +2720,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2781,8 +2737,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2802,7 +2757,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2829,8 +2784,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2848,8 +2802,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2870,8 +2823,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2891,7 +2843,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2918,8 +2870,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2941,8 +2892,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2959,8 +2909,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2980,7 +2929,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3007,8 +2956,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3026,8 +2974,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3048,8 +2995,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3069,7 +3015,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3096,8 +3042,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3118,8 +3063,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -3135,8 +3079,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3155,7 +3098,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -3183,8 +3126,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3201,8 +3143,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -3222,8 +3163,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3242,7 +3182,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -3270,8 +3210,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3293,8 +3232,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3311,8 +3249,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3332,7 +3269,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3359,8 +3296,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3378,8 +3314,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3400,8 +3335,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3421,7 +3355,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3448,8 +3382,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3467,8 +3400,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3485,8 +3417,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3506,7 +3437,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3533,8 +3464,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3552,8 +3482,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3570,8 +3499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3591,7 +3519,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3646,7 +3574,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3685,7 +3613,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3737,8 +3665,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3801,7 +3728,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3840,9 +3767,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3878,8 +3804,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3918,9 +3843,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3972,8 +3896,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4064,9 +3987,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4102,9 +4024,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4113,7 +4034,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4152,9 +4073,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4237,9 +4157,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4275,9 +4194,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4286,8 +4204,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4326,9 +4243,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4395,7 +4311,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4449,8 +4365,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4501,8 +4416,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4556,8 +4470,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4624,7 +4537,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4663,9 +4576,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4701,8 +4613,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4741,9 +4652,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4791,8 +4701,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4843,8 +4752,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4883,9 +4791,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4921,8 +4828,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4960,9 +4866,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5010,8 +4915,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5073,7 +4977,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5107,9 +5011,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5143,9 +5046,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5187,8 +5089,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5234,8 +5135,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5268,9 +5168,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5303,9 +5202,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5347,8 +5245,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5398,9 +5295,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5435,7 +5331,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5482,9 +5378,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5531,9 +5426,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5568,8 +5462,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5610,9 +5503,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5662,9 +5554,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5699,8 +5590,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5747,9 +5637,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5796,9 +5685,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5833,7 +5721,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5874,9 +5762,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5952,9 +5839,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5989,9 +5875,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6023,8 +5908,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6059,9 +5943,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6108,9 +5991,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6157,9 +6039,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6194,9 +6075,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6228,8 +6108,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6263,9 +6142,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6306,9 +6184,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6357,9 +6234,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6394,9 +6270,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6428,8 +6303,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6463,9 +6337,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6512,9 +6385,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6561,9 +6433,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6598,9 +6469,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6632,8 +6502,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6668,9 +6537,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6712,9 +6580,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6825,7 +6692,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6879,8 +6746,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6935,8 +6801,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6990,8 +6855,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7042,7 +6906,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7100,8 +6964,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7152,8 +7015,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7211,8 +7073,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); diff --git a/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp index 2bd71a6408..b058e004a8 100644 --- a/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp +++ b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp @@ -504,8 +504,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -551,9 +550,8 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -597,7 +595,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -644,9 +642,8 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -700,7 +697,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -964,8 +961,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1011,9 +1007,8 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1057,7 +1052,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1104,9 +1099,8 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1160,7 +1154,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1542,8 +1536,7 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1587,9 +1580,8 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1634,9 +1626,8 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1690,7 +1681,7 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1749,8 +1740,7 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1794,9 +1784,8 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1841,9 +1830,8 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1897,8 +1885,7 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1956,8 +1943,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2003,8 +1989,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2057,7 +2042,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2125,8 +2110,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2172,8 +2156,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2226,7 +2209,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2294,9 +2277,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2343,8 +2325,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2397,9 +2378,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2453,9 +2433,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2502,8 +2481,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2552,9 +2530,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2613,9 +2590,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2662,8 +2638,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2717,9 +2692,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2773,9 +2747,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2822,8 +2795,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2871,9 +2843,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2962,9 +2933,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3011,9 +2981,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3057,7 +3026,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3104,9 +3073,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3160,9 +3128,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3216,9 +3183,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3265,9 +3231,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3311,8 +3276,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3358,9 +3322,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3409,9 +3372,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3470,9 +3432,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3519,9 +3480,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3565,8 +3525,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3612,9 +3571,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3668,9 +3626,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3724,9 +3681,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3773,9 +3729,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3819,7 +3774,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3866,9 +3821,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3917,9 +3871,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp index d7c15fe463..d8dac962df 100644 --- a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp @@ -244,8 +244,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; } @@ -279,9 +278,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -313,8 +311,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -348,9 +345,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -376,8 +372,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } @@ -651,9 +646,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -685,9 +679,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -696,8 +689,7 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -731,9 +723,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -803,9 +794,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -837,9 +827,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -848,8 +837,7 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -884,9 +872,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -949,8 +936,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 1: @@ -978,8 +964,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -996,8 +981,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } @@ -1146,7 +1130,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1162,8 +1146,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1178,8 +1161,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1198,8 +1180,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -1263,7 +1244,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1279,8 +1260,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1295,8 +1275,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1315,8 +1294,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } diff --git a/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp index 79c0831bf2..c04c643a99 100644 --- a/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp @@ -895,19 +895,16 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( }, }; - static constexpr int blockedSegments[7] = { + static constexpr PaintSegments kBlockedSegments[7] = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; @@ -917,7 +914,7 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1063,10 +1060,10 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( }, }; - static constexpr int blockedSegments[4] = { + static constexpr PaintSegments kBlockedSegments[4] = { kSegmentsAll, kSegmentsNone, - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, kSegmentsAll, }; @@ -1077,7 +1074,7 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp index ae72c56f0d..e84ecf14bd 100644 --- a/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp @@ -750,9 +750,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -792,9 +791,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -825,7 +823,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -858,9 +856,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -893,9 +890,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -957,9 +953,8 @@ static void CompactInvertedRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1004,9 +999,8 @@ static void CompactInvertedRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1051,9 +1045,8 @@ static void CompactInvertedRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1098,9 +1091,8 @@ static void CompactInvertedRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1148,9 +1140,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1190,9 +1181,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1223,7 +1213,7 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1256,9 +1246,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1291,9 +1280,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1355,9 +1343,8 @@ static void CompactInvertedRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1426,9 +1413,8 @@ static void CompactInvertedRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1497,9 +1483,8 @@ static void CompactInvertedRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1568,9 +1553,8 @@ static void CompactInvertedRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1675,9 +1659,8 @@ static void CompactInvertedRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1729,9 +1712,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1769,9 +1751,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1799,7 +1780,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -1830,9 +1811,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1861,9 +1841,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1914,9 +1893,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1954,9 +1932,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1984,8 +1961,7 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -2015,9 +1991,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -2046,9 +2021,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2123,8 +2097,7 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2160,9 +2133,8 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2195,9 +2167,8 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2232,7 +2203,7 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2286,8 +2257,7 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2323,9 +2293,8 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2358,9 +2327,8 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2395,8 +2363,7 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2449,9 +2416,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2534,8 +2500,7 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2566,9 +2531,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2606,9 +2570,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2640,7 +2603,7 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2700,9 +2663,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2774,9 +2736,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2859,8 +2820,7 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2892,9 +2852,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2932,9 +2891,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2966,8 +2924,7 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -3026,9 +2983,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3100,9 +3056,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3143,8 +3098,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3176,9 +3130,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3243,9 +3196,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3287,8 +3239,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3320,9 +3271,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3383,9 +3333,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3427,9 +3376,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3480,9 +3428,8 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3524,9 +3471,8 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3597,9 +3543,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3634,9 +3579,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3674,9 +3618,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3715,9 +3658,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3752,9 +3694,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3792,9 +3733,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3837,9 +3777,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3867,9 +3806,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3898,9 +3836,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3955,9 +3892,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3985,9 +3921,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4016,9 +3951,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4152,9 +4086,8 @@ static void CompactInvertedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4237,9 +4170,8 @@ static void CompactInvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4316,9 +4248,8 @@ static void CompactInvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4361,9 +4292,8 @@ static void CompactInvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4440,9 +4370,8 @@ static void CompactInvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4645,9 +4574,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4689,9 +4617,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4723,7 +4650,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4758,9 +4685,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4793,9 +4719,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4850,9 +4775,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4894,9 +4818,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4928,8 +4851,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4963,9 +4885,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4998,9 +4919,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5055,9 +4975,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5099,9 +5018,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5133,7 +5051,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5168,9 +5086,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5203,9 +5120,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5260,9 +5176,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5304,9 +5219,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5338,8 +5252,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5373,9 +5286,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5408,9 +5320,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5838,9 +5749,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5872,9 +5782,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5883,8 +5792,7 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5916,9 +5824,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6020,9 +5927,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6054,9 +5960,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6065,8 +5970,7 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6099,9 +6003,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6188,8 +6091,7 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6228,9 +6130,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6262,9 +6163,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6273,8 +6173,7 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6306,9 +6205,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6375,7 +6273,7 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6414,9 +6312,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6448,9 +6345,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6459,8 +6355,7 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6493,9 +6388,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6554,7 +6448,7 @@ inline void CompactInvertedRCTrackDiagFlatBase( TrackPaintUtilDiagTilesPaint( session, 3, height + 29, direction, trackSequence, images, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -6622,7 +6516,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6653,8 +6547,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6684,8 +6577,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6717,8 +6609,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6764,7 +6655,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6781,8 +6672,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -6798,8 +6688,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6817,8 +6706,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6882,7 +6770,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6913,8 +6801,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6944,8 +6831,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6977,8 +6863,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7024,7 +6909,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7041,8 +6926,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7058,8 +6942,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7077,8 +6960,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7128,7 +7010,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7145,8 +7027,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7162,8 +7043,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7181,8 +7061,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7246,7 +7125,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7277,8 +7156,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7308,8 +7186,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7341,8 +7218,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7402,7 +7278,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7433,8 +7309,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7464,8 +7339,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7497,8 +7371,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7544,7 +7417,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7561,8 +7434,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -7578,8 +7450,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7597,8 +7468,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7662,7 +7532,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7692,8 +7562,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7722,8 +7591,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7754,8 +7622,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7801,7 +7668,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7818,8 +7685,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7835,8 +7701,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7854,8 +7719,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7905,7 +7769,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7922,8 +7786,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7939,8 +7802,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7958,8 +7820,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8023,7 +7884,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8054,8 +7915,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8085,8 +7945,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8118,8 +7977,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8165,7 +8023,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8182,8 +8040,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8199,8 +8056,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8218,9 +8074,8 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8271,7 +8126,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8288,8 +8143,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8305,8 +8159,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8324,9 +8177,8 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8377,7 +8229,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8394,8 +8246,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8411,8 +8262,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8430,9 +8280,8 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8483,7 +8332,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8500,8 +8349,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8517,8 +8365,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8536,9 +8383,8 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8589,7 +8435,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8606,8 +8452,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8623,8 +8468,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8642,8 +8486,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8689,7 +8532,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8706,8 +8549,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8723,8 +8565,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8742,8 +8583,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8789,7 +8629,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8806,8 +8646,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8823,8 +8662,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8842,8 +8680,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8889,7 +8726,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8906,8 +8743,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8923,8 +8759,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8942,8 +8777,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8989,7 +8823,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9005,8 +8839,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9021,8 +8854,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9039,8 +8871,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9086,7 +8917,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9102,8 +8933,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9118,8 +8948,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9136,8 +8965,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9183,7 +9011,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9200,8 +9028,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9217,8 +9044,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9236,8 +9062,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9283,7 +9108,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9300,8 +9125,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9317,8 +9141,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9336,8 +9159,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9383,7 +9205,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9400,8 +9222,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9417,8 +9238,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9436,9 +9256,8 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9489,7 +9308,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9506,8 +9325,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9523,8 +9341,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9542,9 +9359,8 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp index be8ef87a45..aba8cd2e56 100644 --- a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp @@ -754,8 +754,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -789,9 +788,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -823,7 +821,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -858,9 +856,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -903,7 +900,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1139,8 +1136,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1174,9 +1170,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1208,7 +1203,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1243,9 +1238,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1291,7 +1285,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1631,8 +1625,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1664,9 +1657,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1697,7 +1689,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1730,9 +1722,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1775,7 +1766,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1823,8 +1814,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1856,9 +1846,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1889,8 +1878,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1922,9 +1910,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1967,8 +1954,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2034,8 +2020,7 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2065,9 +2050,8 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2098,9 +2082,8 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2142,7 +2125,7 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2189,8 +2172,7 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2220,9 +2202,8 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2253,9 +2234,8 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2297,8 +2277,7 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2347,9 +2326,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2385,9 +2363,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2419,8 +2396,7 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2447,9 +2423,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2483,9 +2458,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2517,7 +2491,7 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2553,9 +2527,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2600,9 +2573,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2885,8 +2857,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2920,8 +2891,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2963,7 +2933,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3023,8 +2993,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3058,8 +3027,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3104,7 +3072,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3157,8 +3125,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3202,7 +3169,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3246,8 +3213,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3297,8 +3263,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3421,9 +3386,8 @@ static void CorkscrewRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -3562,9 +3526,8 @@ static void CorkscrewRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3624,9 +3587,8 @@ static void CorkscrewRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3686,9 +3648,8 @@ static void CorkscrewRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3767,9 +3728,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3804,8 +3764,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3850,9 +3809,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3898,9 +3856,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3935,8 +3892,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3977,9 +3933,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4030,9 +3985,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4067,8 +4021,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4114,9 +4067,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4162,9 +4114,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4199,8 +4150,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4240,9 +4190,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4323,9 +4272,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4360,9 +4308,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4394,7 +4341,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4429,9 +4376,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4477,9 +4423,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4525,9 +4470,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4562,9 +4506,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4596,8 +4539,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4631,9 +4573,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4674,9 +4615,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4727,9 +4667,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4764,9 +4703,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4798,8 +4736,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4833,9 +4770,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4881,9 +4817,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4929,9 +4864,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4966,9 +4900,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5000,7 +4933,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5035,9 +4968,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5078,9 +5010,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5687,9 +5618,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5721,9 +5651,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5732,8 +5661,7 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5772,9 +5700,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5850,9 +5777,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5884,9 +5810,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5895,8 +5820,7 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5936,9 +5860,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6032,9 +5955,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6066,9 +5988,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6077,8 +5998,7 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6117,9 +6037,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6195,9 +6114,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6229,9 +6147,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6240,8 +6157,7 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6281,9 +6197,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6337,7 +6252,7 @@ static void CorkscrewRCTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -6356,7 +6271,7 @@ static void CorkscrewRCTrackDiagBlockBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -6394,7 +6309,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6425,8 +6340,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6456,8 +6370,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6516,8 +6429,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6557,7 +6469,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6588,8 +6500,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6619,8 +6530,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6679,8 +6589,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6720,7 +6629,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6751,8 +6660,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6782,8 +6690,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6842,8 +6749,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6883,7 +6789,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6914,8 +6820,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6945,8 +6850,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7005,8 +6909,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7046,7 +6949,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7077,8 +6980,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7108,8 +7010,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7168,8 +7069,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7209,7 +7109,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7240,8 +7140,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7271,8 +7170,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7331,8 +7229,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7372,7 +7269,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7403,8 +7300,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7434,8 +7330,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7494,8 +7389,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7535,7 +7429,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7566,8 +7460,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7597,8 +7490,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7657,8 +7549,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7698,7 +7589,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7728,8 +7619,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7758,8 +7648,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7817,8 +7706,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7859,7 +7747,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7890,8 +7778,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7921,8 +7808,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7981,8 +7867,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8022,7 +7907,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8053,8 +7938,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8084,8 +7968,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8144,8 +8027,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8185,7 +8067,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8216,8 +8098,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8247,8 +8128,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8307,8 +8187,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8334,7 +8213,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8354,8 +8233,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8371,8 +8249,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8403,8 +8280,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8430,7 +8306,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8447,8 +8323,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8467,8 +8342,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8499,8 +8373,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8526,7 +8399,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8546,8 +8419,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8563,8 +8435,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8595,8 +8466,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8622,7 +8492,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8639,8 +8509,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8659,8 +8528,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8691,8 +8559,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8718,7 +8585,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8738,8 +8605,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8755,8 +8621,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8787,8 +8652,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8814,7 +8678,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8831,8 +8695,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8851,8 +8714,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8883,8 +8745,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8910,7 +8771,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8930,8 +8791,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8947,8 +8807,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8979,8 +8838,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9006,7 +8864,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9023,8 +8881,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9043,8 +8900,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9075,8 +8931,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9102,7 +8957,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9121,8 +8976,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9137,8 +8991,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9168,8 +9021,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9196,7 +9048,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9212,8 +9064,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9231,8 +9082,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9262,8 +9112,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9290,7 +9139,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9310,8 +9159,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9327,8 +9175,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9359,8 +9206,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9386,7 +9232,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9403,8 +9249,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9423,8 +9268,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9455,8 +9299,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9482,7 +9325,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9499,8 +9342,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9516,8 +9358,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9548,8 +9389,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9575,7 +9415,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9592,8 +9432,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9609,8 +9448,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9641,8 +9479,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9735,9 +9572,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9765,9 +9601,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9795,9 +9630,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -9852,9 +9686,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9882,9 +9715,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9912,9 +9744,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -9963,9 +9794,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -10000,9 +9830,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10041,9 +9870,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10080,9 +9908,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -10117,9 +9944,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10158,9 +9984,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10204,9 +10029,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10235,9 +10059,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10267,9 +10090,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10325,9 +10147,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10355,9 +10176,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10386,9 +10206,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10504,9 +10323,8 @@ static void LayDownRCTrackFlyerHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -10578,9 +10396,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -10644,9 +10461,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10706,9 +10522,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10768,9 +10583,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10927,7 +10741,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10944,8 +10758,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10961,8 +10774,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10993,8 +10805,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11019,7 +10830,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11036,8 +10847,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11053,8 +10863,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11085,8 +10894,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11111,7 +10919,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11128,8 +10936,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11145,8 +10952,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11177,8 +10983,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11203,7 +11008,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11220,8 +11025,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11237,8 +11041,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11269,8 +11072,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12344,8 +12146,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12405,7 +12206,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12455,8 +12256,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12523,8 +12323,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12591,8 +12390,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12630,9 +12428,8 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12668,7 +12465,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -12707,9 +12504,8 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12755,7 +12551,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12805,8 +12601,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12844,9 +12639,8 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12882,8 +12676,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12921,9 +12714,8 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12969,8 +12761,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13063,9 +12854,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13099,9 +12889,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13110,8 +12899,7 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13152,9 +12940,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13236,9 +13023,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13274,9 +13060,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13285,8 +13070,7 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13330,9 +13114,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13385,9 +13168,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13423,9 +13205,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13434,8 +13215,7 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13470,9 +13250,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13564,9 +13343,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13602,9 +13380,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13613,8 +13390,7 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13650,9 +13426,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13692,8 +13467,7 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13755,7 +13529,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13777,8 +13551,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13795,8 +13568,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13828,8 +13600,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13855,7 +13626,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13873,8 +13644,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13895,8 +13665,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13928,8 +13697,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13955,7 +13723,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13977,8 +13745,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13995,8 +13762,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14028,8 +13794,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14055,7 +13820,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14073,8 +13838,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14095,8 +13859,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14128,8 +13891,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14187,7 +13949,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14205,8 +13967,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14223,8 +13984,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14256,8 +14016,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14283,7 +14042,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14301,8 +14060,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14319,8 +14077,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14352,8 +14109,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14379,7 +14135,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14397,8 +14153,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14415,8 +14170,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14448,8 +14202,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14475,7 +14228,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14493,8 +14246,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14511,8 +14263,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14544,8 +14295,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14603,7 +14353,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14621,8 +14371,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14639,8 +14388,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14672,8 +14420,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14699,7 +14446,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14717,8 +14464,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14735,8 +14481,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14768,8 +14513,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14811,7 +14555,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14833,8 +14577,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14851,8 +14594,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14884,8 +14626,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14911,7 +14652,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14929,8 +14670,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14951,8 +14691,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14984,8 +14723,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15011,7 +14749,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15033,8 +14771,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15051,8 +14788,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15084,8 +14820,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15111,7 +14846,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15129,8 +14864,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15151,8 +14885,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15184,8 +14917,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15305,9 +15037,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15343,9 +15074,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15354,8 +15084,7 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15398,9 +15127,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15489,9 +15217,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15527,9 +15254,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15538,8 +15264,7 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15583,9 +15308,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15638,9 +15362,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15676,9 +15399,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15687,8 +15409,7 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15723,9 +15444,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15822,9 +15542,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15860,9 +15579,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15871,8 +15589,7 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15908,9 +15625,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15957,8 +15673,7 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16044,8 +15759,7 @@ static void CorkscrewRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16112,7 +15826,7 @@ static void CorkscrewRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -16165,8 +15879,7 @@ static void CorkscrewRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16237,8 +15950,7 @@ static void CorkscrewRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16298,8 +16010,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16362,7 +16073,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -16419,8 +16130,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16479,8 +16189,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16527,9 +16236,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16569,9 +16277,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16598,8 +16305,7 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16610,9 +16316,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16680,9 +16385,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16739,9 +16443,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16781,9 +16484,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16810,8 +16512,7 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16823,9 +16524,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16892,9 +16592,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17113,9 +16812,8 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17155,8 +16853,7 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17193,8 +16890,7 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17227,9 +16923,8 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -17317,9 +17012,8 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17359,8 +17053,7 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17399,8 +17092,7 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17432,9 +17124,8 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -17571,9 +17262,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17613,9 +17303,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17647,8 +17336,7 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -17683,9 +17371,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17721,9 +17408,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17842,9 +17528,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17884,9 +17569,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17918,8 +17602,7 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -17953,9 +17636,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17991,9 +17673,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18072,9 +17753,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -18118,9 +17798,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18173,9 +17852,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18240,9 +17918,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -18286,9 +17963,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18341,9 +18017,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18447,9 +18122,8 @@ static void CorkscrewRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18458,9 +18132,8 @@ static void CorkscrewRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18593,9 +18266,8 @@ static void CorkscrewRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18604,9 +18276,8 @@ static void CorkscrewRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18786,9 +18457,8 @@ static void CorkscrewRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18797,9 +18467,8 @@ static void CorkscrewRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18966,9 +18635,8 @@ static void CorkscrewRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18977,9 +18645,8 @@ static void CorkscrewRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -19068,7 +18735,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -19086,8 +18753,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19104,8 +18770,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19141,9 +18806,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19161,8 +18825,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19179,8 +18842,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19216,9 +18878,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19236,8 +18897,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19254,8 +18914,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19287,8 +18946,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -19314,7 +18972,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19332,8 +18990,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19350,8 +19007,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19387,9 +19043,8 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19407,8 +19062,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19425,8 +19079,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19462,9 +19115,8 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19482,8 +19134,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19500,8 +19151,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19533,8 +19183,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19560,7 +19209,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19578,8 +19227,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19596,8 +19244,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19633,9 +19280,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19653,8 +19299,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19671,8 +19316,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19708,9 +19352,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19728,8 +19371,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19746,8 +19388,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19779,8 +19420,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -19806,7 +19446,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19824,8 +19464,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19842,8 +19481,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19879,9 +19517,8 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19899,8 +19536,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19917,8 +19553,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19954,9 +19589,8 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19974,8 +19608,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19992,8 +19625,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -20025,8 +19657,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -20056,7 +19687,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -20073,8 +19704,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -20090,8 +19720,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -20131,9 +19760,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -20165,9 +19793,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -20176,9 +19803,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -20242,7 +19868,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -20259,8 +19885,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -20277,8 +19902,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -20317,9 +19941,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -20351,9 +19974,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -20362,9 +19984,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index 892266b907..925e2afdcf 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -279,9 +279,8 @@ static void FlyingRCTrackHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -421,9 +420,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -455,9 +453,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -489,8 +486,7 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -522,9 +518,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -562,9 +557,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -665,9 +659,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -699,9 +692,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -733,8 +725,7 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -765,9 +756,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -804,9 +794,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index e14b9f32ca..1be4cc16c3 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -558,9 +558,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -602,9 +601,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -636,7 +634,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -671,9 +669,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -706,9 +703,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -769,9 +765,8 @@ static void InvertedFlyingRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -816,9 +811,8 @@ static void InvertedFlyingRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -863,9 +857,8 @@ static void InvertedFlyingRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -910,9 +903,8 @@ static void InvertedFlyingRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -960,9 +952,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1002,9 +993,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1035,7 +1025,7 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1068,9 +1058,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1103,9 +1092,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1167,9 +1155,8 @@ static void InvertedFlyingRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1221,9 +1208,8 @@ static void InvertedFlyingRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1275,9 +1261,8 @@ static void InvertedFlyingRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1329,9 +1314,8 @@ static void InvertedFlyingRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1419,9 +1403,8 @@ static void InvertedFlyingRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1473,9 +1456,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1513,9 +1495,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1543,7 +1524,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1574,9 +1555,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1605,9 +1585,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1658,9 +1637,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1698,9 +1676,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1728,8 +1705,7 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1759,9 +1735,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1790,9 +1765,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1867,8 +1841,7 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -1907,9 +1880,8 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -1956,9 +1928,8 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2005,7 +1976,7 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2060,8 +2031,7 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -2100,9 +2070,8 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2149,9 +2118,8 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -2198,8 +2166,7 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -2253,9 +2220,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2297,8 +2263,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2330,9 +2295,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2396,9 +2360,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2440,8 +2403,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2473,9 +2435,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2536,9 +2497,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2580,9 +2540,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2633,9 +2592,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2677,9 +2635,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2917,9 +2874,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2961,9 +2917,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2995,7 +2950,7 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3030,9 +2985,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3065,9 +3019,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3122,9 +3075,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3166,9 +3118,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3200,8 +3151,7 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3235,9 +3185,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3270,9 +3219,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3327,9 +3275,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3371,9 +3318,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3405,7 +3351,7 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3440,9 +3386,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3475,9 +3420,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3532,9 +3476,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3576,9 +3519,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3610,8 +3552,7 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3645,9 +3586,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3680,9 +3620,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3917,9 +3856,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3951,9 +3889,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3962,8 +3899,7 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3995,9 +3931,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4079,9 +4014,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4113,9 +4047,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4124,8 +4057,7 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4158,9 +4090,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4226,8 +4157,7 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4266,9 +4196,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4300,9 +4229,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4311,8 +4239,7 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4344,9 +4271,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4393,7 +4319,7 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4432,9 +4358,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4466,9 +4391,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4477,8 +4401,7 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4511,9 +4434,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4578,7 +4500,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4609,8 +4531,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4640,8 +4561,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4673,8 +4593,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + kSupportHeight, @@ -4718,7 +4637,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4749,8 +4668,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4780,8 +4698,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4813,8 +4730,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 51, session.SupportColours); @@ -4843,7 +4759,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4860,8 +4776,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4877,8 +4792,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4896,8 +4810,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4961,7 +4874,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4992,8 +4905,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5023,8 +4935,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5056,8 +4967,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -5086,7 +4996,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5103,8 +5013,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5120,8 +5029,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5139,8 +5047,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5190,7 +5097,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5207,8 +5114,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5224,8 +5130,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5243,8 +5148,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5308,7 +5212,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5339,8 +5243,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5370,8 +5273,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5403,8 +5305,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -5433,7 +5334,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5450,8 +5351,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5467,8 +5367,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5486,8 +5385,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 51, session.SupportColours); @@ -5516,7 +5414,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5533,8 +5431,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5550,8 +5447,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5569,8 +5465,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5620,7 +5515,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5636,8 +5531,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5652,8 +5546,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5670,8 +5563,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -5700,7 +5592,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5717,8 +5609,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5734,8 +5625,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5753,8 +5643,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5804,7 +5693,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5821,8 +5710,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5838,8 +5726,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5857,8 +5744,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5908,7 +5794,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5925,8 +5811,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5942,8 +5827,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5961,8 +5845,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -5991,7 +5874,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6008,8 +5891,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6025,8 +5907,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6044,9 +5925,8 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6077,7 +5957,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6094,8 +5974,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6111,8 +5990,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6130,9 +6008,8 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6163,7 +6040,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6180,8 +6057,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6197,8 +6073,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6216,9 +6091,8 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6249,7 +6123,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6266,8 +6140,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6283,8 +6156,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6302,9 +6174,8 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6335,7 +6206,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6352,8 +6223,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6369,8 +6239,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6388,8 +6257,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6418,7 +6286,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6435,8 +6303,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6452,8 +6319,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6471,8 +6337,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6501,7 +6366,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6518,8 +6383,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6535,8 +6399,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6554,8 +6417,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6584,7 +6446,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6601,8 +6463,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6618,8 +6479,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6637,8 +6497,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6667,7 +6526,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6683,8 +6542,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6699,8 +6557,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6717,8 +6574,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6747,7 +6603,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6763,8 +6619,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6779,8 +6634,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6797,8 +6651,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6827,7 +6680,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6844,8 +6697,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6861,8 +6713,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6880,8 +6731,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6910,7 +6760,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6927,8 +6777,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6944,8 +6793,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6963,8 +6811,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6993,7 +6840,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7010,8 +6857,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7027,8 +6873,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7046,9 +6891,8 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -7079,7 +6923,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7096,8 +6940,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7113,8 +6956,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7132,9 +6974,8 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -7209,9 +7050,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7253,9 +7093,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7306,9 +7145,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7350,9 +7188,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7423,9 +7260,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7463,9 +7299,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7493,7 +7328,7 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -7524,9 +7359,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7555,9 +7389,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7608,9 +7441,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7648,9 +7480,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7678,8 +7509,7 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -7709,9 +7539,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7740,9 +7569,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8511,7 +8339,7 @@ static void InvertedFlyingRCTrackDiagBrakes( session, 1, height + 24, direction, trackSequence, kInvertedRCDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -8562,9 +8390,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8600,9 +8427,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8645,9 +8471,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8686,9 +8511,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8723,9 +8547,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8768,9 +8591,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8838,9 +8660,8 @@ static void FlyingRCTrackFlyerHalfLoopDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); diff --git a/src/openrct2/paint/track/coaster/HybridCoaster.cpp b/src/openrct2/paint/track/coaster/HybridCoaster.cpp index c5d0fc2b7a..59603ca598 100644 --- a/src/openrct2/paint/track/coaster/HybridCoaster.cpp +++ b/src/openrct2/paint/track/coaster/HybridCoaster.cpp @@ -781,7 +781,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -890,7 +890,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -929,9 +929,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -971,9 +970,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -982,7 +980,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1021,9 +1019,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4571,7 +4568,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4704,7 +4701,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4747,9 +4744,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4797,9 +4793,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4808,7 +4803,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4851,9 +4846,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5423,7 +5417,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5554,8 +5548,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5679,7 +5672,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5722,9 +5715,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5768,9 +5760,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5779,7 +5770,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5822,9 +5813,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5931,8 +5921,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5975,9 +5964,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6021,9 +6009,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6031,8 +6018,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6075,9 +6061,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7189,7 +7174,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7322,8 +7307,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7461,7 +7445,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7508,9 +7492,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7558,9 +7541,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7569,7 +7551,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7616,9 +7598,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7737,8 +7718,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7785,9 +7765,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7835,9 +7814,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7845,8 +7823,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7893,9 +7870,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8052,9 +8028,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8094,9 +8069,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8228,9 +8202,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8270,9 +8243,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8432,7 +8404,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8594,8 +8566,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8756,8 +8727,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8919,7 +8889,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9053,7 +9023,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9092,9 +9062,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9137,9 +9106,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9148,7 +9116,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9187,9 +9155,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9297,8 +9264,7 @@ namespace OpenRCT2::HybridRC case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9337,9 +9303,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9382,9 +9347,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9392,8 +9356,7 @@ namespace OpenRCT2::HybridRC case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9432,9 +9395,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9541,8 +9503,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9581,9 +9542,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9626,9 +9586,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9636,8 +9595,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9676,9 +9634,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9787,7 +9744,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9826,9 +9783,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9871,9 +9827,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9882,7 +9837,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9921,9 +9876,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -11611,7 +11565,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11746,8 +11700,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11873,7 +11826,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12008,8 +11961,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); diff --git a/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp index 6b67ce984c..750aeb3560 100644 --- a/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp +++ b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp @@ -730,9 +730,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -774,8 +773,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -807,9 +805,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -870,9 +867,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -914,9 +910,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -967,9 +962,8 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1011,9 +1005,8 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1085,7 +1078,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn1( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); diff --git a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp index a2dfa82b99..5b3871bb75 100644 --- a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp @@ -633,9 +633,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -675,9 +674,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -708,7 +706,7 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -741,9 +739,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -776,9 +773,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -839,9 +835,8 @@ static void InvertedRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -886,9 +881,8 @@ static void InvertedRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -933,9 +927,8 @@ static void InvertedRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -980,9 +973,8 @@ static void InvertedRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1030,9 +1022,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1072,9 +1063,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1105,7 +1095,7 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1138,9 +1128,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1173,9 +1162,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1236,9 +1224,8 @@ static void InvertedRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1307,9 +1294,8 @@ static void InvertedRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1378,9 +1364,8 @@ static void InvertedRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1449,9 +1434,8 @@ static void InvertedRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1552,9 +1536,8 @@ static void InvertedRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1606,9 +1589,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1646,9 +1628,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1676,7 +1657,7 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -1707,9 +1688,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1738,9 +1718,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1791,9 +1770,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1831,9 +1809,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1861,8 +1838,7 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -1892,9 +1868,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1923,9 +1898,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2000,8 +1974,7 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2037,9 +2010,8 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2072,9 +2044,8 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2109,7 +2080,7 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2163,8 +2134,7 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2200,9 +2170,8 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2235,9 +2204,8 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2272,8 +2240,7 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2326,9 +2293,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2411,8 +2377,7 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2443,9 +2408,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2483,9 +2447,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2517,7 +2480,7 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2577,9 +2540,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2651,9 +2613,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2736,8 +2697,7 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2769,9 +2729,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2809,9 +2768,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2843,8 +2801,7 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2903,9 +2860,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2977,9 +2933,8 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3020,8 +2975,7 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3053,9 +3007,8 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3119,9 +3072,8 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3163,8 +3115,7 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3196,9 +3147,8 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3258,9 +3208,8 @@ static void InvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3302,9 +3251,8 @@ static void InvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3355,9 +3303,8 @@ static void InvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3399,9 +3346,8 @@ static void InvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3472,9 +3418,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3509,9 +3454,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3549,9 +3493,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3590,9 +3533,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3627,9 +3569,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3667,9 +3608,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3712,9 +3652,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3742,9 +3681,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3773,9 +3711,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3830,9 +3767,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3860,9 +3796,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3891,9 +3826,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4027,9 +3961,8 @@ static void InvertedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4112,9 +4045,8 @@ static void InvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4191,9 +4123,8 @@ static void InvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4236,9 +4167,8 @@ static void InvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4315,9 +4245,8 @@ static void InvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4518,9 +4447,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4562,9 +4490,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4596,7 +4523,7 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4631,9 +4558,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4666,9 +4592,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4723,9 +4648,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4767,9 +4691,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4801,8 +4724,7 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4836,9 +4758,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4871,9 +4792,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4928,9 +4848,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4972,9 +4891,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5006,7 +4924,7 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5041,9 +4959,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5076,9 +4993,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5133,9 +5049,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5177,9 +5092,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5211,8 +5125,7 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5246,9 +5159,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5281,9 +5193,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5550,9 +5461,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5584,9 +5494,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5595,8 +5504,7 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5628,9 +5536,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -5732,9 +5639,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5766,9 +5672,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5777,8 +5682,7 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5811,9 +5715,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -5898,8 +5801,7 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5938,9 +5840,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5972,9 +5873,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5983,8 +5883,7 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6016,9 +5915,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6085,7 +5983,7 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6124,9 +6022,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6158,9 +6055,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6169,8 +6065,7 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6203,9 +6098,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6262,7 +6156,7 @@ inline void InvertedRCTrackDiagFlatBase( TrackPaintUtilDiagTilesPaint( session, 1, height + 29, direction, trackSequence, images, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -6322,7 +6216,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6353,8 +6247,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6384,8 +6277,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6417,8 +6309,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6464,7 +6355,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6481,8 +6372,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -6498,8 +6388,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6517,8 +6406,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6582,7 +6470,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6613,8 +6501,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6644,8 +6531,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6677,8 +6563,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6724,7 +6609,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6741,8 +6626,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -6758,8 +6642,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6777,8 +6660,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6828,7 +6710,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6845,8 +6727,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -6862,8 +6743,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6881,8 +6761,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6946,7 +6825,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6977,8 +6856,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7008,8 +6886,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7041,8 +6918,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7102,7 +6978,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7133,8 +7009,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7164,8 +7039,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7197,8 +7071,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7244,7 +7117,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7261,8 +7134,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -7278,8 +7150,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7297,8 +7168,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7362,7 +7232,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7392,8 +7262,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7422,8 +7291,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7454,8 +7322,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7501,7 +7368,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7518,8 +7385,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7535,8 +7401,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7554,8 +7419,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7605,7 +7469,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7622,8 +7486,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7639,8 +7502,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7658,8 +7520,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7723,7 +7584,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7754,8 +7615,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7785,8 +7645,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7818,8 +7677,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7865,7 +7723,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7882,8 +7740,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7899,8 +7756,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7918,9 +7774,8 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -7971,7 +7826,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7988,8 +7843,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8005,8 +7859,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8024,9 +7877,8 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8077,7 +7929,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8094,8 +7946,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8111,8 +7962,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8130,9 +7980,8 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8183,7 +8032,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8200,8 +8049,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8217,8 +8065,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8236,9 +8083,8 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8289,7 +8135,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8306,8 +8152,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8323,8 +8168,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8342,8 +8186,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8389,7 +8232,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8406,8 +8249,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8423,8 +8265,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8442,8 +8283,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8489,7 +8329,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8506,8 +8346,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8523,8 +8362,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8542,8 +8380,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8589,7 +8426,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8606,8 +8443,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8623,8 +8459,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8642,8 +8477,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8689,7 +8523,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8705,8 +8539,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8721,8 +8554,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8739,8 +8571,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8786,7 +8617,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8802,8 +8633,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8818,8 +8648,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8836,8 +8665,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8883,7 +8711,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8900,8 +8728,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8917,8 +8744,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8936,8 +8762,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8983,7 +8808,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9000,8 +8825,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9017,8 +8841,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9036,8 +8859,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9083,7 +8905,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9100,8 +8922,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9117,8 +8938,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9136,9 +8956,8 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9189,7 +9008,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9206,8 +9025,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9223,8 +9041,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9242,9 +9059,8 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9370,9 +9186,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -9404,9 +9219,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9438,8 +9252,7 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -9471,9 +9284,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9510,9 +9322,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -9614,9 +9425,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -9648,9 +9458,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9682,8 +9491,7 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -9714,9 +9522,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9753,9 +9560,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -9842,9 +9648,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9886,9 +9691,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9939,9 +9743,8 @@ static void InvertedRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9983,9 +9786,8 @@ static void InvertedRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10056,9 +9858,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10096,9 +9897,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10126,7 +9926,7 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -10157,9 +9957,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10188,9 +9987,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10241,9 +10039,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10281,9 +10078,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10311,8 +10107,7 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -10342,9 +10137,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10373,9 +10167,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11324,9 +11117,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11357,9 +11149,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11368,9 +11159,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11430,10 +11220,9 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11466,9 +11255,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -11542,9 +11330,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -11561,9 +11348,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11572,9 +11358,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11630,10 +11415,9 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11666,9 +11450,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -11802,9 +11585,8 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kInvertedSpriteOffset + 88); @@ -11838,8 +11620,7 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -11870,8 +11651,7 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11880,9 +11660,8 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right), + { PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -11986,9 +11765,8 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12022,8 +11800,7 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); @@ -12056,8 +11833,7 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); break; @@ -12065,9 +11841,8 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -12207,9 +11982,8 @@ static void InvertedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12289,8 +12063,7 @@ static void InvertedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -12367,9 +12140,8 @@ static void InvertedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12464,9 +12236,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, - PaintSegment::bottom), + { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::bottom }, direction), 0xFFFF, 0); switch (direction) @@ -12549,9 +12320,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12587,9 +12357,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12657,9 +12426,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::centre, - PaintSegment::left), + { PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::centre, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -12737,9 +12505,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::centre, PaintSegment::topRight), // FIXED: Mirrored perfectly from Left across TR-C-BL + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::centre, PaintSegment::topRight }, // FIXED: Mirrored perfectly from Left across TR-C-BL direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -12775,9 +12542,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::centre, PaintSegment::topRight), // FIXED: Mirrored perfectly from Left across TR-C-BL + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::centre, PaintSegment::topRight }, // FIXED: Mirrored perfectly from Left across TR-C-BL direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12860,8 +12626,7 @@ static void InvertedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) @@ -12959,9 +12724,8 @@ static void InvertedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13053,7 +12817,7 @@ static void InvertedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomLeft, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) @@ -13152,9 +12916,8 @@ static void InvertedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13295,9 +13058,8 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottom, - PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottom, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -13371,9 +13133,8 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13385,10 +13146,9 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13516,9 +13276,8 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -13591,9 +13350,8 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13605,10 +13363,9 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13715,8 +13472,7 @@ static void InvertedRCTrackFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::bottomRight), - direction), + { PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14284,7 +14040,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14302,8 +14058,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14320,8 +14075,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14339,8 +14093,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14366,7 +14119,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14384,8 +14137,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14402,8 +14154,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14421,8 +14172,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14466,7 +14216,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14484,8 +14234,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14502,8 +14251,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14521,8 +14269,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14574,7 +14321,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14591,8 +14338,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14608,8 +14354,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14618,8 +14363,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14663,7 +14407,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14682,8 +14426,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14701,8 +14444,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14721,9 +14463,8 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14764,8 +14505,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14783,8 +14523,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14803,9 +14542,8 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14846,8 +14584,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14865,8 +14602,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14885,8 +14621,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) { @@ -14914,7 +14649,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14933,8 +14668,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14952,8 +14686,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14972,9 +14705,8 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -15002,8 +14734,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -15021,8 +14752,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15041,9 +14771,8 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -15084,8 +14813,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -15103,8 +14831,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15123,8 +14850,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) { @@ -15185,8 +14911,7 @@ static void InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15242,9 +14967,8 @@ static void InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15308,9 +15032,8 @@ static void InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -15355,9 +15078,8 @@ static void InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16016,9 +15738,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16027,9 +15748,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16075,8 +15795,7 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16084,9 +15803,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16129,9 +15847,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16172,9 +15889,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, - PaintSegment::bottomLeft, PaintSegment::topRight), + { PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -16222,8 +15938,7 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16258,9 +15973,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16269,9 +15983,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16409,9 +16122,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16420,9 +16132,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -16468,8 +16179,7 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16478,9 +16188,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16522,9 +16231,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -16566,9 +16274,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -16616,8 +16323,7 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16625,9 +16331,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::left), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -16663,8 +16368,7 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) { @@ -16765,9 +16469,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom, - PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom, + PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16855,9 +16558,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16866,9 +16568,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16917,8 +16618,7 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( case 3: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16926,9 +16626,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16975,9 +16674,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft }, direction), 0xFFFF, 0); switch (direction) @@ -17022,9 +16720,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, - PaintSegment::bottomLeft, PaintSegment::topRight), + { PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17076,8 +16773,7 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17116,9 +16812,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17127,9 +16822,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17199,9 +16893,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -17262,9 +16955,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17301,9 +16993,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17357,7 +17048,7 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::bottomLeft), direction), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17366,9 +17057,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17415,9 +17105,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17458,9 +17147,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -17516,8 +17204,7 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17526,9 +17213,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::left), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -17569,9 +17255,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::top, - PaintSegment::topRight, PaintSegment::right), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::top, + PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -17689,7 +17374,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17706,8 +17391,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17715,8 +17399,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17749,8 +17432,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17785,7 +17467,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17802,8 +17484,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17819,8 +17500,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17829,8 +17509,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17878,7 +17557,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17895,8 +17574,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17904,8 +17582,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17938,8 +17615,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17974,7 +17650,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17991,8 +17667,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18008,8 +17683,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18018,8 +17692,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18099,7 +17772,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18116,8 +17789,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18125,8 +17797,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18158,8 +17829,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18194,7 +17864,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18211,8 +17881,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18228,8 +17897,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18238,8 +17906,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18287,7 +17954,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18304,8 +17971,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18313,8 +17979,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18347,8 +18012,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18383,7 +18047,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18400,8 +18064,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18418,8 +18081,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18428,8 +18090,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18509,7 +18170,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18526,8 +18187,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18535,8 +18195,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18569,8 +18228,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18605,7 +18263,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18622,8 +18280,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18639,8 +18296,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18649,8 +18305,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18713,7 +18368,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18730,8 +18385,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18739,8 +18393,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18773,8 +18426,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18809,7 +18461,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18826,8 +18478,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18843,8 +18494,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18853,8 +18503,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18902,7 +18551,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18919,8 +18568,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18928,8 +18576,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18962,8 +18609,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18998,7 +18644,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19015,8 +18661,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19032,8 +18677,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19042,8 +18686,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -19141,9 +18784,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19185,9 +18827,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19219,7 +18860,7 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19254,9 +18895,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19289,9 +18929,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19345,9 +18984,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19389,9 +19027,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19423,8 +19060,7 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19458,9 +19094,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19493,9 +19128,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( diff --git a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp index de81a65a5b..0c4dae2aa0 100644 --- a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp @@ -1867,9 +1867,7 @@ static void JuniorRCPaintTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1946,9 +1944,7 @@ static void JuniorRCPaintTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1979,9 +1975,7 @@ static void JuniorRCPaintTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2024,9 +2018,7 @@ static void JuniorRCPaintTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2087,17 +2079,15 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2105,17 +2095,15 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2123,8 +2111,7 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -2190,9 +2177,7 @@ static void JuniorRCFlatToLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2241,9 +2226,7 @@ static void JuniorRCFlatToRightBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2390,17 +2373,15 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2408,17 +2389,15 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2426,8 +2405,7 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -2501,9 +2479,7 @@ static void JuniorRCLeftBankTo25DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2564,9 +2540,7 @@ static void JuniorRCRightBankTo25DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2628,9 +2602,7 @@ static void JuniorRC25DegUpToLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2692,9 +2664,7 @@ static void JuniorRC25DegUpToRightBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2783,9 +2753,7 @@ static void JuniorRCLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2848,17 +2816,15 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::top, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::top, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2866,7 +2832,7 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::right, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomRight, PaintSegment::right, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; @@ -2874,9 +2840,8 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2884,7 +2849,7 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottom), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -2947,17 +2912,15 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2965,17 +2928,15 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2983,8 +2944,7 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -3084,26 +3044,22 @@ static void JuniorRCSBendLeftPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, (direction & 1)), 0xFFFF, 0); @@ -3178,26 +3134,22 @@ static void JuniorRCSBendRightPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, (direction & 1)), 0xFFFF, 0); @@ -3228,20 +3180,18 @@ static void JuniorRCRightQuarterTurn3TilesPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3347,20 +3297,18 @@ static void JuniorRCRightQuarterTurn3TilesBankPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3432,16 +3380,14 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegUp( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3516,16 +3462,14 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegDown( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3622,22 +3566,20 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, + PaintSegment::bottomRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3693,22 +3635,20 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup( PaintUtilPushTunnelRight(session, height + 8, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, + PaintSegment::bottomRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3802,9 +3742,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::right }, direction), 0xFFFF, 0); break; @@ -3812,9 +3751,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -3822,17 +3760,15 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -3840,9 +3776,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -3906,9 +3841,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::right }, direction), 0xFFFF, 0); break; @@ -3916,9 +3850,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -3926,17 +3859,15 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -3944,9 +3875,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -4017,9 +3947,7 @@ static void JuniorRCBrakePaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4056,9 +3984,7 @@ static void JuniorRCBlockBrakePaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4095,30 +4021,26 @@ static void JuniorRCLeftEighthToDiagPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -4158,29 +4080,27 @@ static void JuniorRCRightEighthToDiagPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -4318,30 +4238,26 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -4461,29 +4377,27 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -4535,7 +4449,7 @@ static void JuniorRCTrackDiagBrakes( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4554,7 +4468,7 @@ static void JuniorRCTrackDiagBlockBrakes( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4575,7 +4489,7 @@ static void JuniorRCPaintTrackDiag25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4596,7 +4510,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4618,7 +4532,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 6, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -4639,7 +4553,7 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4661,7 +4575,7 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height + 13, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -4682,7 +4596,7 @@ static void JuniorRCPaintTrackDiag25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4703,7 +4617,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4725,7 +4639,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height + 7, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -4746,7 +4660,7 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4768,7 +4682,7 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4794,7 +4708,7 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4820,7 +4734,7 @@ static void JuniorRCDiagFlatToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4846,7 +4760,7 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4872,7 +4786,7 @@ static void JuniorRCDiagRightBankToFlatPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4898,7 +4812,7 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4924,7 +4838,7 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4950,7 +4864,7 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4976,7 +4890,7 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5002,7 +4916,7 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5028,7 +4942,7 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5054,7 +4968,7 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -5080,7 +4994,7 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -5115,7 +5029,7 @@ static void JuniorRCDiagLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -5136,7 +5050,7 @@ static void JuniorRCDiagRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -5208,9 +5122,7 @@ static void JuniorRCPaintTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5294,9 +5206,7 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5357,9 +5267,7 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5388,7 +5296,7 @@ static void JuniorRCPaintTrackDiag60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 36, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5410,7 +5318,7 @@ static void JuniorRCPaintTrackDiag60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 28, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5432,7 +5340,7 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 16, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5464,7 +5372,7 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 21, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5496,7 +5404,7 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 17, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5518,7 +5426,7 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5607,9 +5515,7 @@ static void JuniorRCFlatTo60DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -5668,9 +5574,7 @@ static void JuniorRC60DegUpToFlatPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5739,9 +5643,7 @@ static void JuniorRCBoosterPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp b/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp index ff053f9034..769ae74eed 100644 --- a/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp +++ b/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp @@ -878,8 +878,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -913,9 +912,8 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -947,7 +945,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -982,9 +980,8 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1026,7 +1023,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1257,8 +1254,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1292,9 +1288,8 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1326,7 +1321,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1361,9 +1356,8 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1408,7 +1402,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1744,8 +1738,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1777,9 +1770,8 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1810,7 +1802,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1843,9 +1835,8 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1887,7 +1878,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1934,8 +1925,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1967,9 +1957,8 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2000,8 +1989,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2033,9 +2021,8 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2077,8 +2064,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2144,8 +2130,7 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2175,9 +2160,8 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2208,9 +2192,8 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2252,7 +2235,7 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2299,8 +2282,7 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2330,9 +2312,8 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2363,9 +2344,8 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2407,8 +2387,7 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2454,8 +2433,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2489,8 +2467,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2531,7 +2508,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2590,8 +2567,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2625,8 +2601,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2670,7 +2645,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2723,8 +2698,7 @@ static void LatticeTriangleTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2767,7 +2741,7 @@ static void LatticeTriangleTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2810,8 +2784,7 @@ static void LatticeTriangleTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2861,8 +2834,7 @@ static void LatticeTriangleTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2931,9 +2903,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2968,8 +2939,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3013,9 +2983,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3060,9 +3029,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3097,8 +3065,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3138,9 +3105,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3190,9 +3156,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3227,8 +3192,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3273,9 +3237,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3320,9 +3283,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3357,8 +3319,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3397,9 +3358,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3479,9 +3439,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3516,9 +3475,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3550,7 +3508,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3585,9 +3543,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3632,9 +3589,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3679,9 +3635,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3716,9 +3671,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3750,8 +3704,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3785,9 +3738,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3827,9 +3779,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3879,9 +3830,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3916,9 +3866,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3950,8 +3899,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3985,9 +3933,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4039,9 +3986,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4086,9 +4032,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4123,9 +4068,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4157,7 +4101,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4192,9 +4136,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4241,9 +4184,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5275,9 +5217,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5309,9 +5250,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5320,8 +5260,7 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5360,9 +5299,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5437,9 +5375,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5471,9 +5408,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5482,8 +5418,7 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5523,9 +5458,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5618,9 +5552,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5652,9 +5585,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5663,8 +5595,7 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5703,9 +5634,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5780,9 +5710,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5814,9 +5743,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5825,8 +5753,7 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5866,9 +5793,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5943,7 +5869,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5974,8 +5900,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6005,8 +5930,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6065,8 +5989,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6092,7 +6015,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6109,8 +6032,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6126,8 +6048,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6158,8 +6079,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6199,7 +6119,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6230,8 +6150,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6261,8 +6180,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6321,8 +6239,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6348,7 +6265,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6365,8 +6282,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6382,8 +6298,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6414,8 +6329,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6441,7 +6355,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6458,8 +6372,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6475,8 +6388,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6507,8 +6419,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6548,7 +6459,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6579,8 +6490,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6610,8 +6520,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6670,8 +6579,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6711,7 +6619,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6742,8 +6650,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6773,8 +6680,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6833,8 +6739,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6860,7 +6765,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6877,8 +6782,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6894,8 +6798,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6926,8 +6829,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6967,7 +6869,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6997,8 +6899,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7027,8 +6928,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7086,8 +6986,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7114,7 +7013,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7131,8 +7030,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7148,8 +7046,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7180,8 +7077,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7207,7 +7103,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7224,8 +7120,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7241,8 +7136,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7273,8 +7167,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7314,7 +7207,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7345,8 +7238,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7376,8 +7268,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7436,8 +7327,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7463,7 +7353,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7483,8 +7373,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7500,8 +7389,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7532,8 +7420,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7559,7 +7446,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7576,8 +7463,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7596,8 +7482,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7628,8 +7513,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7655,7 +7539,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7675,8 +7559,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7692,8 +7575,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7724,8 +7606,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7751,7 +7632,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7768,8 +7649,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7788,8 +7668,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7820,8 +7699,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7847,7 +7725,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7867,8 +7745,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7884,8 +7761,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7916,8 +7792,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7943,7 +7818,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7960,8 +7835,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7980,8 +7854,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8012,8 +7885,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8039,7 +7911,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8059,8 +7931,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8076,8 +7947,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8108,8 +7978,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8135,7 +8004,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8152,8 +8021,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8172,8 +8040,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8204,8 +8071,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8231,7 +8097,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8250,8 +8116,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8266,8 +8131,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8297,8 +8161,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8325,7 +8188,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8341,8 +8204,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8360,8 +8222,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8391,8 +8252,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8419,7 +8279,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8439,8 +8299,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8456,8 +8315,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8488,8 +8346,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8515,7 +8372,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8532,8 +8389,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8552,8 +8408,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8584,8 +8439,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8611,7 +8465,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8628,8 +8482,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8645,8 +8498,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8677,8 +8529,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8704,7 +8555,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8721,8 +8572,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8738,8 +8588,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8770,8 +8619,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8836,8 +8684,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8882,7 +8729,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8926,8 +8773,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8979,8 +8825,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9046,8 +8891,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9080,9 +8924,8 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9113,7 +8956,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9148,9 +8991,8 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9192,7 +9034,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9239,8 +9081,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9273,9 +9114,8 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9306,8 +9146,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9341,9 +9180,8 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9385,8 +9223,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10492,9 +10329,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10542,9 +10378,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10603,9 +10438,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10678,9 +10512,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10732,9 +10565,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10795,9 +10627,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10922,9 +10753,8 @@ static void LatticeTriangleTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11017,9 +10847,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11060,9 +10889,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11096,8 +10924,7 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -11130,9 +10957,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11172,9 +10998,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11208,7 +11033,7 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11249,9 +11074,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11301,9 +11125,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11644,9 +11467,8 @@ static void LatticeTriangleTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11706,9 +11528,8 @@ static void LatticeTriangleTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11773,9 +11594,8 @@ static void LatticeTriangleTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11835,9 +11655,8 @@ static void LatticeTriangleTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11916,9 +11735,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -11962,9 +11780,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12000,8 +11817,7 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -12012,9 +11828,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12087,9 +11902,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12150,9 +11964,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -12196,9 +12009,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12234,8 +12046,7 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12247,9 +12058,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12321,9 +12131,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12433,9 +12242,8 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12479,8 +12287,7 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12515,8 +12322,7 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12553,9 +12359,8 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12645,9 +12450,8 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12691,8 +12495,7 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12729,8 +12532,7 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12766,9 +12568,8 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12876,9 +12677,8 @@ static void LatticeTriangleTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12929,9 +12729,8 @@ static void LatticeTriangleTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13030,9 +12829,8 @@ static void LatticeTriangleTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13085,9 +12883,8 @@ static void LatticeTriangleTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13231,9 +13028,8 @@ static void LatticeTriangleTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13242,9 +13038,8 @@ static void LatticeTriangleTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -13419,9 +13214,8 @@ static void LatticeTriangleTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13430,9 +13224,8 @@ static void LatticeTriangleTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13667,8 +13460,7 @@ static void LatticeTriangleTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13720,7 +13512,7 @@ static void LatticeTriangleTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13774,8 +13566,7 @@ static void LatticeTriangleTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13827,8 +13618,7 @@ static void LatticeTriangleTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13878,8 +13668,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Tile25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13934,7 +13723,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Tile25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13985,8 +13774,7 @@ static void LatticeTriangleTrackRightQuarterTurn3Tile25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14041,8 +13829,7 @@ static void LatticeTriangleTrackRightQuarterTurn3Tile25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14163,9 +13950,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14209,9 +13995,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14247,8 +14032,7 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14284,9 +14068,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14326,9 +14109,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14450,9 +14232,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14496,9 +14277,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14534,8 +14314,7 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -14570,9 +14349,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14612,9 +14390,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14763,7 +14540,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14781,8 +14558,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14799,8 +14575,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14832,8 +14607,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14859,7 +14633,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14877,8 +14651,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14895,8 +14668,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14928,8 +14700,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14955,7 +14726,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14973,8 +14744,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14991,8 +14761,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15024,8 +14793,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15051,7 +14819,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15069,8 +14837,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15087,8 +14854,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15120,8 +14886,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15202,9 +14967,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15240,9 +15004,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15251,8 +15014,7 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15295,9 +15057,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15379,9 +15140,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15417,9 +15177,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15428,8 +15187,7 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15473,9 +15231,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15528,9 +15285,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15566,9 +15322,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15577,8 +15332,7 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15613,9 +15367,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15707,9 +15460,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15745,9 +15497,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15756,8 +15507,7 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15793,9 +15543,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15835,8 +15584,7 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15900,7 +15648,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15922,8 +15670,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15940,8 +15687,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15973,8 +15719,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16000,7 +15745,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16018,8 +15763,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16040,8 +15784,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16073,8 +15816,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16100,7 +15842,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16122,8 +15864,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16140,8 +15881,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16173,8 +15913,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16200,7 +15939,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16218,8 +15957,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16240,8 +15978,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16273,8 +16010,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16332,7 +16068,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16350,8 +16086,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16368,8 +16103,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16401,8 +16135,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16428,7 +16161,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16446,8 +16179,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16464,8 +16196,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16497,8 +16228,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16524,7 +16254,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16542,8 +16272,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16560,8 +16289,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16593,8 +16321,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16620,7 +16347,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16638,8 +16365,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16656,8 +16382,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16689,8 +16414,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16748,7 +16472,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16766,8 +16490,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16784,8 +16507,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16817,8 +16539,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16844,7 +16565,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16862,8 +16583,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16880,8 +16600,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16913,8 +16632,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16956,7 +16674,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16978,8 +16696,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16996,8 +16713,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17029,8 +16745,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17056,7 +16771,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17074,8 +16789,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17096,8 +16810,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17129,8 +16842,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17156,7 +16868,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17178,8 +16890,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17196,8 +16907,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17229,8 +16939,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17256,7 +16965,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17274,8 +16983,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17296,8 +17004,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17329,8 +17036,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17450,9 +17156,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17488,9 +17193,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17499,8 +17203,7 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17543,9 +17246,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17634,9 +17336,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17672,9 +17373,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17683,8 +17383,7 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17728,9 +17427,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17783,9 +17481,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17821,9 +17518,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17832,8 +17528,7 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17868,9 +17563,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17967,9 +17661,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18005,9 +17698,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18016,8 +17708,7 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18053,9 +17744,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18102,8 +17792,7 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18209,7 +17898,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18227,8 +17916,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18245,8 +17933,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18282,9 +17969,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18302,8 +17988,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18320,8 +18005,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18357,9 +18041,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18377,8 +18060,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18395,8 +18077,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18428,8 +18109,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -18455,7 +18135,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18473,8 +18153,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18491,8 +18170,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18528,9 +18206,8 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18548,8 +18225,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18566,8 +18242,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18603,9 +18278,8 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18623,8 +18297,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18641,8 +18314,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18674,8 +18346,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18701,7 +18372,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18719,8 +18390,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18737,8 +18407,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18774,9 +18443,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18794,8 +18462,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18812,8 +18479,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18849,9 +18515,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18869,8 +18534,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18887,8 +18551,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18920,8 +18583,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -18947,7 +18609,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -18965,8 +18627,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18983,8 +18644,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19020,9 +18680,8 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19040,8 +18699,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19058,8 +18716,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19095,9 +18752,8 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19115,8 +18771,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19133,8 +18788,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19166,8 +18820,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -19197,7 +18850,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19214,8 +18867,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19231,8 +18883,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19272,9 +18923,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19306,9 +18956,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19317,9 +18966,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19383,7 +19031,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19400,8 +19048,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19418,8 +19065,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19458,9 +19104,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19492,9 +19137,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19503,9 +19147,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp index 2302f34c33..c7e61021cd 100644 --- a/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp @@ -649,9 +649,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -693,9 +692,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -727,7 +725,7 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -762,9 +760,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -797,9 +794,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -860,9 +856,8 @@ static void LayDownRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -907,9 +902,8 @@ static void LayDownRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -954,9 +948,8 @@ static void LayDownRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1001,9 +994,8 @@ static void LayDownRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1051,9 +1043,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1093,9 +1084,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1126,7 +1116,7 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1159,9 +1149,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1194,9 +1183,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1257,9 +1245,8 @@ static void LayDownRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1328,9 +1315,8 @@ static void LayDownRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1399,9 +1385,8 @@ static void LayDownRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1470,9 +1455,8 @@ static void LayDownRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1573,9 +1557,8 @@ static void LayDownRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1627,9 +1610,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1667,9 +1649,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1697,7 +1678,7 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1728,9 +1709,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1759,9 +1739,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1812,9 +1791,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1852,9 +1830,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1882,8 +1859,7 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1913,9 +1889,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1944,9 +1919,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2020,8 +1994,7 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2059,9 +2032,8 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2096,9 +2068,8 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2133,7 +2104,7 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2187,8 +2158,7 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2226,9 +2196,8 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2263,9 +2232,8 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2300,8 +2268,7 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2354,9 +2321,8 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2398,8 +2364,7 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2431,9 +2396,8 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2497,9 +2461,8 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2541,8 +2504,7 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2574,9 +2536,8 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2636,9 +2597,8 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2680,9 +2640,8 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2733,9 +2692,8 @@ static void LayDownRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2777,9 +2735,8 @@ static void LayDownRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3064,9 +3021,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3098,9 +3054,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3109,8 +3064,7 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3142,9 +3096,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3246,9 +3199,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3280,9 +3232,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3291,8 +3242,7 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3325,9 +3275,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3412,8 +3361,7 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3452,9 +3400,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3486,9 +3433,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3497,8 +3443,7 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3530,9 +3475,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3599,7 +3543,7 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3638,9 +3582,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3672,9 +3615,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3683,8 +3625,7 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3717,9 +3658,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3800,7 +3740,7 @@ static void LayDownRCTrackDiagBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, -3, height + 24, direction, trackSequence, kLaydownDiagBrakeImages, defaultDiagTileOffsets, @@ -3820,7 +3760,7 @@ static void LayDownRCTrackDiagBlockBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, -3, height + 24, direction, trackSequence, kLaydownDiagBlockBrakeImages[trackElement.isBrakeClosed()], @@ -3869,7 +3809,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3900,8 +3840,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3931,8 +3870,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3964,8 +3902,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4011,7 +3948,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4028,8 +3965,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4045,8 +3981,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4064,8 +3999,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4129,7 +4063,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4160,8 +4094,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4191,8 +4124,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4224,8 +4156,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4271,7 +4202,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4288,8 +4219,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4305,8 +4235,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4324,8 +4253,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4375,7 +4303,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4392,8 +4320,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4409,8 +4336,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4428,8 +4354,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4493,7 +4418,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4524,8 +4449,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4555,8 +4479,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4588,8 +4511,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4635,7 +4557,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4652,8 +4574,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4669,8 +4590,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4688,8 +4608,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4735,7 +4654,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4752,8 +4671,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4769,8 +4687,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4788,8 +4705,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4839,7 +4755,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4855,8 +4771,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4871,8 +4786,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4889,8 +4803,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4936,7 +4849,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4953,8 +4866,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4970,8 +4882,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4989,8 +4900,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5040,7 +4950,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5057,8 +4967,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5074,8 +4983,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5093,8 +5001,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5144,7 +5051,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5161,8 +5068,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5178,8 +5084,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5197,8 +5102,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5244,7 +5148,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5261,8 +5165,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5278,8 +5181,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5297,9 +5199,8 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5350,7 +5251,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5367,8 +5268,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5384,8 +5284,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5403,9 +5302,8 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5456,7 +5354,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5473,8 +5371,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5490,8 +5387,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5509,9 +5405,8 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5562,7 +5457,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5579,8 +5474,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5596,8 +5490,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5615,9 +5508,8 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5668,7 +5560,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5685,8 +5577,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5702,8 +5593,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5721,8 +5611,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5768,7 +5657,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5785,8 +5674,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5802,8 +5690,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5821,8 +5708,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5868,7 +5754,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5885,8 +5771,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5902,8 +5787,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5921,8 +5805,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5968,7 +5851,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5985,8 +5868,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6002,8 +5884,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6021,8 +5902,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6068,7 +5948,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6084,8 +5964,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6100,8 +5979,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6118,8 +5996,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6165,7 +6042,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6181,8 +6058,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6197,8 +6073,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6215,8 +6090,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6262,7 +6136,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6279,8 +6153,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6296,8 +6169,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6315,8 +6187,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6362,7 +6233,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6379,8 +6250,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6396,8 +6266,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6415,8 +6284,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6462,7 +6330,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6479,8 +6347,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6496,8 +6363,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6515,9 +6381,8 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6568,7 +6433,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6585,8 +6450,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6602,8 +6466,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6621,9 +6484,8 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6687,9 +6549,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6725,9 +6586,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6765,9 +6625,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6806,9 +6665,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6843,9 +6701,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6883,9 +6740,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6953,9 +6809,8 @@ static void LayDownRCTrackFlyerHalfLoopDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -7061,9 +6916,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7139,9 +6993,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7224,9 +7077,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7268,9 +7120,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7302,7 +7153,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7337,9 +7188,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7372,9 +7222,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7428,9 +7277,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7472,9 +7320,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7506,8 +7353,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7541,9 +7387,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7576,9 +7421,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7632,9 +7476,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7676,9 +7519,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7710,7 +7552,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7745,9 +7587,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7780,9 +7621,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7836,9 +7676,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7880,9 +7719,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7914,8 +7752,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7949,9 +7786,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7984,9 +7820,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8119,9 +7954,8 @@ static void LayDownRCTrackHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); diff --git a/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp index fcd22ebecd..b4875b7f95 100644 --- a/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp @@ -124,9 +124,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -154,9 +153,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -188,8 +186,7 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -216,9 +213,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -252,9 +248,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -286,7 +281,7 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -314,9 +309,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -361,9 +355,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -639,9 +632,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -685,9 +677,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -740,9 +731,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -801,9 +791,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -847,9 +836,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -902,9 +890,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -962,9 +949,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -1008,9 +994,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1064,9 +1049,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1124,9 +1108,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -1170,9 +1153,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1226,9 +1208,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1331,9 +1312,8 @@ static void LimLaunchedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1392,9 +1372,8 @@ static void LimLaunchedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1454,9 +1433,8 @@ static void LimLaunchedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2003,9 +1981,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2049,9 +2026,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2104,9 +2080,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2171,9 +2146,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2217,9 +2191,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2272,9 +2245,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2399,9 +2371,8 @@ static void LimLaunchedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2811,9 +2782,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -2853,9 +2823,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2887,8 +2856,7 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2899,9 +2867,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2966,9 +2933,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3025,9 +2991,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -3067,9 +3032,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3101,8 +3065,7 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3114,9 +3077,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3180,9 +3142,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3284,9 +3245,8 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3326,8 +3286,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -3358,8 +3317,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -3392,9 +3350,8 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -3476,9 +3433,8 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3518,8 +3474,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -3552,8 +3507,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -3585,9 +3539,8 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -3693,9 +3646,8 @@ static void LimLaunchedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3742,9 +3694,8 @@ static void LimLaunchedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3833,9 +3784,8 @@ static void LimLaunchedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3882,9 +3832,8 @@ static void LimLaunchedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4019,9 +3968,8 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4030,9 +3978,8 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -4205,9 +4152,8 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4216,9 +4162,8 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -4336,8 +4281,7 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4389,7 +4333,7 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4443,8 +4387,7 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4496,8 +4439,7 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4547,8 +4489,7 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4603,7 +4544,7 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4654,8 +4595,7 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4710,8 +4650,7 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4820,9 +4759,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4862,9 +4800,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -4896,8 +4833,7 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -4929,9 +4865,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -4967,9 +4902,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -5079,9 +5013,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -5121,9 +5054,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -5155,8 +5087,7 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -5187,9 +5118,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -5225,9 +5155,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -5379,7 +5308,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5397,8 +5326,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5415,8 +5343,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5448,8 +5375,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5475,7 +5401,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5493,8 +5419,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5511,8 +5436,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5544,8 +5468,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5571,7 +5494,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5589,8 +5512,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5607,8 +5529,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5640,8 +5561,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5667,7 +5587,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5685,8 +5605,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5703,8 +5622,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5736,8 +5654,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; diff --git a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp index 0fafd4ee9b..03ed8f941c 100644 --- a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp @@ -705,8 +705,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -740,9 +739,8 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -774,7 +772,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -809,9 +807,8 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -853,7 +850,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1084,8 +1081,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1119,9 +1115,8 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1153,7 +1148,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1188,9 +1183,8 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1235,7 +1229,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1568,8 +1562,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1601,9 +1594,8 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1634,7 +1626,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1667,9 +1659,8 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1711,7 +1702,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1758,8 +1749,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1791,9 +1781,8 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1824,8 +1813,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1857,9 +1845,8 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1901,8 +1888,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1967,8 +1953,7 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1998,9 +1983,8 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2031,9 +2015,8 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2075,7 +2058,7 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2122,8 +2105,7 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2153,9 +2135,8 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2186,9 +2167,8 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2230,8 +2210,7 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2272,9 +2251,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2302,9 +2280,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2360,8 +2337,7 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2388,9 +2364,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2424,9 +2399,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2482,7 +2456,7 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2510,9 +2484,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2549,9 +2522,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2861,8 +2833,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2896,8 +2867,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2938,7 +2908,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2997,8 +2967,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3032,8 +3001,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3077,7 +3045,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3129,8 +3097,7 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3173,7 +3140,7 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3216,8 +3183,7 @@ static void LoopingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3267,8 +3233,7 @@ static void LoopingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3336,9 +3301,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3373,8 +3337,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3418,9 +3381,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3465,9 +3427,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3502,8 +3463,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3543,9 +3503,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3595,9 +3554,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3632,8 +3590,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3678,9 +3635,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3725,9 +3681,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3762,8 +3717,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3802,9 +3756,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3884,9 +3837,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3921,9 +3873,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3955,7 +3906,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3990,9 +3941,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4037,9 +3987,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4084,9 +4033,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4121,9 +4069,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4155,8 +4102,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4190,9 +4136,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4232,9 +4177,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4284,9 +4228,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4321,9 +4264,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4355,8 +4297,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4390,9 +4331,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4437,9 +4377,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4484,9 +4423,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4521,9 +4459,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4555,7 +4492,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4590,9 +4527,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4632,9 +4568,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5020,9 +4955,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5054,9 +4988,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5065,8 +4998,7 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5105,9 +5037,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5182,9 +5113,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5216,9 +5146,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5227,8 +5156,7 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5268,9 +5196,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5363,9 +5290,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5397,9 +5323,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5408,8 +5333,7 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5448,9 +5372,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5525,9 +5448,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5559,9 +5481,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5570,8 +5491,7 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5611,9 +5531,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5716,7 +5635,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5747,8 +5666,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5778,8 +5696,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5838,8 +5755,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5879,7 +5795,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5910,8 +5826,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5941,8 +5856,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6001,8 +5915,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6042,7 +5955,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6073,8 +5986,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6104,8 +6016,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6164,8 +6075,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6205,7 +6115,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6236,8 +6146,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6267,8 +6176,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6327,8 +6235,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6368,7 +6275,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6399,8 +6306,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6430,8 +6336,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6490,8 +6395,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6531,7 +6435,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6562,8 +6466,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6593,8 +6496,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6653,8 +6555,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6694,7 +6595,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6725,8 +6626,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6756,8 +6656,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6816,8 +6715,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6857,7 +6755,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6888,8 +6786,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6919,8 +6816,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6979,8 +6875,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7020,7 +6915,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7050,8 +6945,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7080,8 +6974,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7139,8 +7032,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7181,7 +7073,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7212,8 +7104,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7243,8 +7134,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7303,8 +7193,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7344,7 +7233,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7375,8 +7264,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7406,8 +7294,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7466,8 +7353,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7507,7 +7393,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7538,8 +7424,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7569,8 +7454,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7629,8 +7513,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7656,7 +7539,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7676,8 +7559,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7693,8 +7575,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7725,8 +7606,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7752,7 +7632,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7769,8 +7649,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7789,8 +7668,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7821,8 +7699,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7848,7 +7725,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7868,8 +7745,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7885,8 +7761,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7917,8 +7792,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7944,7 +7818,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7961,8 +7835,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7981,8 +7854,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8013,8 +7885,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8040,7 +7911,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8060,8 +7931,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8077,8 +7947,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8109,8 +7978,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8136,7 +8004,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8153,8 +8021,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8173,8 +8040,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8205,8 +8071,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8232,7 +8097,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8252,8 +8117,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8269,8 +8133,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8301,8 +8164,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8328,7 +8190,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8345,8 +8207,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8365,8 +8226,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8397,8 +8257,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8424,7 +8283,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8443,8 +8302,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8459,8 +8317,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8490,8 +8347,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8518,7 +8374,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8534,8 +8390,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8553,8 +8408,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8584,8 +8438,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8612,7 +8465,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8632,8 +8485,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8649,8 +8501,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8681,8 +8532,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8708,7 +8558,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8725,8 +8575,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8745,8 +8594,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8777,8 +8625,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8804,7 +8651,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8821,8 +8668,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8838,8 +8684,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8870,8 +8715,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8897,7 +8741,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8914,8 +8758,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8931,8 +8774,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8963,8 +8805,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9042,8 +8883,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9088,7 +8928,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9132,8 +8972,7 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9185,8 +9024,7 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9252,8 +9090,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9286,9 +9123,8 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9319,7 +9155,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9354,9 +9190,8 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9398,7 +9233,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9445,8 +9280,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9479,9 +9313,8 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9512,8 +9345,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9547,9 +9379,8 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9591,8 +9422,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; diff --git a/src/openrct2/paint/track/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp index 3cc9b19db0..4d5010756b 100644 --- a/src/openrct2/paint/track/coaster/MineRide.cpp +++ b/src/openrct2/paint/track/coaster/MineRide.cpp @@ -211,8 +211,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -246,9 +245,8 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -280,7 +278,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -315,9 +313,8 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -342,7 +339,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -588,8 +585,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -623,9 +619,8 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -657,7 +652,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -692,9 +687,8 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -743,7 +737,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1081,8 +1075,7 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1112,9 +1105,8 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1145,9 +1137,8 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1190,7 +1181,7 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1237,8 +1228,7 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1268,9 +1258,8 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1301,9 +1290,8 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1345,8 +1333,7 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1393,8 +1380,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1428,8 +1414,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1472,7 +1457,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1532,8 +1517,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1567,8 +1551,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1614,7 +1597,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1680,9 +1663,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1717,8 +1699,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1764,9 +1745,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1813,9 +1793,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1850,8 +1829,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1893,9 +1871,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1950,9 +1927,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1988,8 +1964,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2039,9 +2014,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2091,9 +2065,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2129,8 +2102,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2173,9 +2145,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2257,9 +2228,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2294,9 +2264,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2328,7 +2297,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2363,9 +2332,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2412,9 +2380,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2461,9 +2428,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2498,9 +2464,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2532,8 +2497,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2567,9 +2531,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2611,9 +2574,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2664,9 +2626,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2701,9 +2662,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2735,8 +2695,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2770,9 +2729,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2819,9 +2777,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2868,9 +2825,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2905,9 +2861,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2939,7 +2894,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2974,9 +2929,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3018,9 +2972,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3162,9 +3115,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3196,9 +3148,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3207,8 +3158,7 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3241,9 +3191,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3319,9 +3268,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3353,9 +3301,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3364,8 +3311,7 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3399,9 +3345,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3495,9 +3440,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3529,9 +3473,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3540,8 +3483,7 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3574,9 +3516,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3652,9 +3593,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3686,9 +3626,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3697,8 +3636,7 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3732,9 +3670,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3798,7 +3735,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3815,8 +3752,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3832,8 +3768,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3852,8 +3787,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3879,7 +3813,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3896,8 +3830,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3913,8 +3846,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3933,8 +3865,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3960,7 +3891,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3977,8 +3908,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3994,8 +3924,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4014,8 +3943,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4041,7 +3969,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4058,8 +3986,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4075,8 +4002,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4095,8 +4021,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4122,7 +4047,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4138,8 +4063,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4154,8 +4078,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4173,8 +4096,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -4201,7 +4123,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4218,8 +4140,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4235,8 +4156,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4255,8 +4175,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4282,7 +4201,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4302,8 +4221,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4319,8 +4237,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4339,8 +4256,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4366,7 +4282,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4383,8 +4299,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4403,8 +4318,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4423,8 +4337,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4450,7 +4363,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4470,8 +4383,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4487,8 +4399,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4507,8 +4418,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4534,7 +4444,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4551,8 +4461,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4571,8 +4480,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4591,8 +4499,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4618,7 +4525,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4638,8 +4545,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4655,8 +4561,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4675,8 +4580,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4702,7 +4606,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4719,8 +4623,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4739,8 +4642,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4759,8 +4661,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4786,7 +4687,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4806,8 +4707,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4823,8 +4723,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4843,8 +4742,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4870,7 +4768,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4887,8 +4785,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4907,8 +4804,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4927,8 +4823,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4954,7 +4849,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4973,8 +4868,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4989,8 +4883,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5008,8 +4901,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5036,7 +4928,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5052,8 +4944,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5071,8 +4962,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5090,8 +4980,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5118,7 +5007,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5138,8 +5027,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5155,8 +5043,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5175,8 +5062,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5202,7 +5088,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5219,8 +5105,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5239,8 +5124,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5259,8 +5143,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5286,7 +5169,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5303,8 +5186,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5320,8 +5202,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5340,8 +5221,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5367,7 +5247,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5384,8 +5264,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5401,8 +5280,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5421,8 +5299,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp index d7ec94274d..31ef20cea1 100644 --- a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp @@ -614,8 +614,7 @@ static void MineTrainRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -646,9 +645,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -681,9 +679,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -691,8 +688,7 @@ static void MineTrainRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -723,9 +719,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -989,8 +984,7 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 2: @@ -1021,9 +1015,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1057,9 +1050,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1067,8 +1059,7 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 5: @@ -1099,9 +1090,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1480,8 +1470,7 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1514,9 +1503,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1550,9 +1538,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1560,8 +1547,7 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1594,9 +1580,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1698,8 +1683,7 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1738,9 +1722,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1780,9 +1763,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1790,8 +1772,7 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1830,9 +1811,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1987,9 +1967,8 @@ static void MineTrainRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2027,9 +2006,8 @@ static void MineTrainRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2160,9 +2138,8 @@ static void MineTrainRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2200,9 +2177,8 @@ static void MineTrainRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2332,8 +2308,7 @@ static void MineTrainRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2475,8 +2450,7 @@ static void MineTrainRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2591,8 +2565,7 @@ static void MineTrainRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2691,8 +2664,7 @@ static void MineTrainRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2809,15 +2781,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2855,8 +2825,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2907,15 +2876,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2967,15 +2934,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3012,8 +2977,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3060,15 +3024,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3125,15 +3087,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3171,8 +3131,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3224,15 +3183,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3284,15 +3241,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3330,8 +3285,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3377,15 +3331,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3472,15 +3424,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3488,8 +3438,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3528,9 +3477,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3570,13 +3518,12 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3584,8 +3531,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3624,9 +3570,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3678,15 +3623,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3738,15 +3681,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3754,9 +3695,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 9: @@ -3794,9 +3734,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3836,23 +3775,21 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 12: @@ -3890,9 +3827,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3939,15 +3875,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4004,15 +3938,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4020,9 +3952,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 2: @@ -4060,9 +3991,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4102,23 +4032,21 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 5: @@ -4156,9 +4084,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4210,15 +4137,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4270,15 +4195,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4286,8 +4209,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4326,9 +4248,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4368,13 +4289,12 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4382,8 +4302,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4422,9 +4341,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4471,15 +4389,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6848,7 +6764,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6867,8 +6783,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6886,8 +6801,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6903,8 +6817,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp index 44afc700a8..ba0ad09ccc 100644 --- a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp @@ -597,8 +597,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -632,9 +631,8 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -666,7 +664,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -701,9 +699,8 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -747,7 +744,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -984,8 +981,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1019,9 +1015,8 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1053,7 +1048,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1088,9 +1083,8 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1137,7 +1131,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1476,8 +1470,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1509,9 +1502,8 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1542,7 +1534,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1575,9 +1567,8 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1621,7 +1612,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1669,8 +1660,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1702,9 +1692,8 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1735,8 +1724,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1768,9 +1756,8 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1814,8 +1801,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1879,8 +1865,7 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1910,9 +1895,8 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1943,9 +1927,8 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1988,7 +1971,7 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2035,8 +2018,7 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2066,9 +2048,8 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2099,9 +2080,8 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2143,8 +2123,7 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2191,8 +2170,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2226,8 +2204,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2270,7 +2247,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2330,8 +2307,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2365,8 +2341,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2412,7 +2387,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2465,8 +2440,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2511,7 +2485,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2555,8 +2529,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2601,8 +2574,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2670,9 +2642,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2707,8 +2678,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2754,9 +2724,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2803,9 +2772,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2840,8 +2808,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2883,9 +2850,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2936,9 +2902,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2973,8 +2938,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3023,9 +2987,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3075,9 +3038,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3113,8 +3075,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3157,9 +3118,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3240,9 +3200,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3277,9 +3236,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3311,7 +3269,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3346,9 +3304,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3395,9 +3352,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3444,9 +3400,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3481,9 +3436,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3515,8 +3469,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3550,9 +3503,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3594,9 +3546,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3647,9 +3598,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3684,9 +3634,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3718,8 +3667,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3753,9 +3701,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3802,9 +3749,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3851,9 +3797,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3888,9 +3833,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3922,7 +3866,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3957,9 +3901,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4001,9 +3944,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4386,9 +4328,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4420,9 +4361,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4431,8 +4371,7 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4465,9 +4404,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4543,9 +4481,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4577,9 +4514,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4588,8 +4524,7 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4623,9 +4558,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4719,9 +4653,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4753,9 +4686,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4764,8 +4696,7 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4798,9 +4729,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4876,9 +4806,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4910,9 +4839,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4921,8 +4849,7 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4956,9 +4883,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5040,7 +4966,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5071,8 +4997,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5102,8 +5027,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5136,8 +5060,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5163,7 +5086,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5180,8 +5103,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5197,8 +5119,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5218,8 +5139,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5259,7 +5179,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5290,8 +5210,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5321,8 +5240,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5355,8 +5273,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5382,7 +5299,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5399,8 +5316,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5416,8 +5332,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5436,8 +5351,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5463,7 +5377,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5480,8 +5394,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5497,8 +5410,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5517,8 +5429,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5558,7 +5469,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5589,8 +5500,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5620,8 +5530,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5654,8 +5563,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5695,7 +5603,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5726,8 +5634,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5757,8 +5664,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5791,8 +5697,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5818,7 +5723,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5835,8 +5740,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5852,8 +5756,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5873,8 +5776,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5914,7 +5816,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5944,8 +5846,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5974,8 +5875,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6007,8 +5907,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6035,7 +5934,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6052,8 +5951,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6069,8 +5967,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6089,8 +5986,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6116,7 +6012,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6133,8 +6029,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6150,8 +6045,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6170,8 +6064,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6211,7 +6104,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6242,8 +6135,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6273,8 +6165,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6307,8 +6198,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6334,7 +6224,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6354,8 +6244,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6371,8 +6260,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6391,8 +6279,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6418,7 +6305,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6435,8 +6322,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6455,8 +6341,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6475,8 +6360,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6502,7 +6386,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6522,8 +6406,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6539,8 +6422,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6559,8 +6441,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6586,7 +6467,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6603,8 +6484,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6623,8 +6503,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6643,8 +6522,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6670,7 +6548,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6690,8 +6568,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6707,8 +6584,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6727,8 +6603,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6754,7 +6629,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6771,8 +6646,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6791,8 +6665,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6811,8 +6684,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6838,7 +6710,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6858,8 +6730,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6875,8 +6746,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6895,8 +6765,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6922,7 +6791,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6939,8 +6808,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6959,8 +6827,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6979,8 +6846,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7006,7 +6872,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7025,8 +6891,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7041,8 +6906,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7060,8 +6924,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7088,7 +6951,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7104,8 +6967,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7123,8 +6985,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7142,8 +7003,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7170,7 +7030,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7190,8 +7050,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7207,8 +7066,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7227,8 +7085,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7254,7 +7111,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7271,8 +7128,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7291,8 +7147,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7311,8 +7166,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7338,7 +7192,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7355,8 +7209,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7372,8 +7225,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7392,8 +7244,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7419,7 +7270,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7436,8 +7287,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7453,8 +7303,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7473,8 +7322,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7537,8 +7385,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7585,7 +7432,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7630,8 +7477,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7678,8 +7524,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7746,8 +7591,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7780,9 +7624,8 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7813,7 +7656,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7848,9 +7691,8 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7894,7 +7736,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7942,8 +7784,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7976,9 +7817,8 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8009,8 +7849,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8044,9 +7883,8 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8090,8 +7928,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8819,8 +8656,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8865,7 +8701,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8908,8 +8744,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8954,8 +8789,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; diff --git a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp index 9b9ebda32a..dd668af725 100644 --- a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp @@ -386,9 +386,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -426,9 +425,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -456,7 +454,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -487,9 +485,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -518,9 +515,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -581,8 +577,7 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -616,9 +611,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -649,9 +643,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -682,7 +675,7 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -733,8 +726,7 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -768,9 +760,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -801,9 +792,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -834,8 +824,7 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -884,9 +873,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -924,8 +912,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -953,9 +940,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1020,8 +1006,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1060,9 +1045,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1094,9 +1078,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1105,8 +1088,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1138,9 +1120,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1186,7 +1167,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1225,9 +1206,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1259,9 +1239,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1270,8 +1249,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1304,9 +1282,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1387,7 +1364,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1418,8 +1395,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1449,8 +1425,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1482,8 +1457,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 42, session.SupportColours); @@ -1526,7 +1500,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1557,8 +1531,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1588,8 +1561,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1621,8 +1593,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 34, session.SupportColours); @@ -1665,7 +1636,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1696,8 +1667,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1727,8 +1697,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1760,8 +1729,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalBSupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 36, session.SupportColours); @@ -1804,7 +1772,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1835,8 +1803,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1866,8 +1833,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1899,8 +1865,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 42, session.SupportColours); @@ -1943,7 +1908,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1973,8 +1938,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -2003,8 +1967,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2035,8 +1998,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 36, session.SupportColours); @@ -2079,7 +2041,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2110,8 +2072,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2141,8 +2102,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2174,8 +2134,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 34, session.SupportColours); diff --git a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp index 98e8a64d14..7094516fbb 100644 --- a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp @@ -687,9 +687,8 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -721,7 +720,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -756,9 +755,8 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -800,7 +798,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1061,9 +1059,8 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1095,7 +1092,7 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1130,9 +1127,8 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1177,7 +1173,7 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1807,8 +1803,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1849,7 +1844,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1938,8 +1933,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1983,7 +1977,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2073,8 +2067,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2118,9 +2111,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2195,8 +2187,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2311,8 +2302,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2397,9 +2387,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2434,8 +2423,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2579,9 +2567,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2613,7 +2600,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2648,9 +2635,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2695,9 +2681,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2772,9 +2757,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2806,8 +2790,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2841,9 +2824,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2958,9 +2940,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2992,8 +2973,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3027,9 +3007,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3114,9 +3093,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3151,9 +3129,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3185,7 +3162,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3220,9 +3197,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3637,9 +3613,8 @@ static void MultiDimensionRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3648,8 +3623,7 @@ static void MultiDimensionRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3784,9 +3758,8 @@ static void MultiDimensionRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3795,8 +3768,7 @@ static void MultiDimensionRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3951,9 +3923,8 @@ static void MultiDimensionRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3962,8 +3933,7 @@ static void MultiDimensionRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4098,9 +4068,8 @@ static void MultiDimensionRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4109,8 +4078,7 @@ static void MultiDimensionRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4206,7 +4174,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4237,8 +4205,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4268,8 +4235,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4328,8 +4294,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4340,7 +4305,7 @@ static void MultiDimensionRCTrackDiagBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, 3, height, direction, trackSequence, MultidimDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4359,7 +4324,7 @@ static void MultiDimensionRCTrackDiagBlockBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, 3, height, direction, trackSequence, MultidimDiagBlockBrakeImages[trackElement.isBrakeClosed()], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4407,7 +4372,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4438,8 +4403,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4469,8 +4433,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4529,8 +4492,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4556,7 +4518,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4573,8 +4535,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4590,8 +4551,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4622,8 +4582,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4663,7 +4622,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4694,8 +4653,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4725,8 +4683,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4785,8 +4742,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4812,7 +4768,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4829,8 +4785,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4846,8 +4801,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4878,8 +4832,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4905,7 +4858,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4922,8 +4875,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4939,8 +4891,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4971,8 +4922,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5012,7 +4962,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5043,8 +4993,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5074,8 +5023,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5134,8 +5082,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5175,7 +5122,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5206,8 +5153,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5237,8 +5183,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5297,8 +5242,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5324,7 +5268,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5341,8 +5285,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5358,8 +5301,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5390,8 +5332,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5431,7 +5372,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5461,8 +5402,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5491,8 +5431,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5550,8 +5489,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5578,7 +5516,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5595,8 +5533,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5612,8 +5549,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5644,8 +5580,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5671,7 +5606,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5688,8 +5623,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5705,8 +5639,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5737,8 +5670,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5778,7 +5710,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5809,8 +5741,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5840,8 +5771,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5900,8 +5830,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5927,7 +5856,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5947,8 +5876,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5964,8 +5892,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5996,8 +5923,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6023,7 +5949,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6040,8 +5966,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6060,8 +5985,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6092,8 +6016,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6119,7 +6042,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6139,8 +6062,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6156,8 +6078,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6188,8 +6109,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6215,7 +6135,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6232,8 +6152,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6252,8 +6171,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6284,8 +6202,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6311,7 +6228,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6331,8 +6248,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6348,8 +6264,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6380,8 +6295,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6407,7 +6321,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6424,8 +6338,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6444,8 +6357,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6476,8 +6388,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6503,7 +6414,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6523,8 +6434,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6540,8 +6450,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6572,8 +6481,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6599,7 +6507,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6616,8 +6524,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6636,8 +6543,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6668,8 +6574,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6695,7 +6600,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6714,8 +6619,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6730,8 +6634,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6761,8 +6664,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6789,7 +6691,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6805,8 +6707,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6824,8 +6725,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6855,8 +6755,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6883,7 +6782,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6903,8 +6802,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6920,8 +6818,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6952,8 +6849,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6979,7 +6875,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6996,8 +6892,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7016,8 +6911,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7048,8 +6942,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7075,7 +6968,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7092,8 +6985,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7109,8 +7001,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7141,8 +7032,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7168,7 +7058,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7185,8 +7075,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7202,8 +7091,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7234,8 +7122,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7277,9 +7164,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7308,9 +7194,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7340,9 +7225,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7397,9 +7281,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7427,9 +7310,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7458,9 +7340,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( diff --git a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp index 76242e0a19..204eef552c 100644 --- a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp @@ -499,9 +499,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -543,9 +542,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -577,8 +575,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -613,9 +610,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -648,9 +644,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -710,9 +705,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -756,9 +750,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -802,9 +795,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -848,9 +840,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -897,9 +888,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -939,9 +929,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -972,8 +961,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1006,9 +994,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1041,9 +1028,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1103,9 +1089,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1173,9 +1158,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1243,9 +1227,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1313,9 +1296,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1411,9 +1393,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1467,7 +1448,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1507,9 +1488,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -1555,9 +1535,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1603,8 +1582,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1658,8 +1636,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1698,9 +1675,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1735,9 +1711,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1772,8 +1747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1826,9 +1800,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1870,7 +1843,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1903,9 +1876,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1968,9 +1940,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2012,7 +1983,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2045,9 +2016,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2407,9 +2377,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2441,9 +2410,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2452,7 +2420,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2485,9 +2453,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2585,9 +2552,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2619,9 +2585,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2630,8 +2595,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2664,9 +2628,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2747,8 +2710,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2787,9 +2749,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2821,9 +2782,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2832,7 +2792,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2865,9 +2825,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2930,8 +2889,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2970,9 +2928,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3004,9 +2961,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3015,8 +2971,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3049,9 +3004,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3130,8 +3084,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3162,8 +3115,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3193,8 +3145,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3226,7 +3177,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3287,8 +3238,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3319,8 +3269,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3350,8 +3299,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3383,7 +3331,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3430,8 +3378,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3448,8 +3395,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -3465,8 +3411,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3484,7 +3429,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3546,8 +3491,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3578,8 +3522,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3609,8 +3552,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3642,7 +3584,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3689,8 +3631,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3707,8 +3648,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3724,8 +3664,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3743,7 +3682,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3791,8 +3730,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3809,8 +3747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3826,8 +3763,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3845,7 +3781,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3907,8 +3843,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3939,8 +3874,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3970,8 +3904,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4003,7 +3936,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4050,8 +3983,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4068,8 +4000,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4085,8 +4016,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4104,7 +4034,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4151,8 +4081,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4169,8 +4098,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4186,8 +4114,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4205,7 +4132,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4253,8 +4180,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4271,8 +4197,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4288,8 +4213,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4307,7 +4231,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4354,8 +4278,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4372,8 +4295,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4389,8 +4311,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4408,7 +4329,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4456,8 +4377,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4474,8 +4394,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4491,8 +4410,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4510,7 +4428,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4557,8 +4475,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4575,8 +4492,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4592,8 +4508,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4611,7 +4526,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4658,8 +4573,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4676,8 +4590,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4693,8 +4606,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4712,9 +4624,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4761,8 +4672,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4779,8 +4689,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4796,8 +4705,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4815,9 +4723,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4864,8 +4771,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4882,8 +4788,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4899,8 +4804,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4918,9 +4822,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4967,8 +4870,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4985,8 +4887,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5002,8 +4903,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5021,9 +4921,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5070,8 +4969,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5088,8 +4986,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5105,8 +5002,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5124,7 +5020,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5171,8 +5067,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5189,8 +5084,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5206,8 +5100,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5225,7 +5118,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5272,8 +5165,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5290,8 +5182,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5307,8 +5198,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5326,7 +5216,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5373,8 +5263,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5391,8 +5280,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5408,8 +5296,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5427,7 +5314,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5474,8 +5361,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5491,8 +5377,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5507,8 +5392,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5525,7 +5409,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5572,8 +5456,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5589,8 +5472,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5605,8 +5487,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5623,7 +5504,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5670,8 +5551,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5688,8 +5568,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5705,8 +5584,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5724,7 +5602,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5771,8 +5649,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5789,8 +5666,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5806,8 +5682,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5825,7 +5700,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5872,8 +5747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5890,8 +5764,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5907,8 +5780,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5926,9 +5798,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5975,8 +5846,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5993,8 +5863,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6010,8 +5879,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6029,9 +5897,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6091,9 +5958,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6129,9 +5995,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6170,9 +6035,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6210,9 +6074,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6247,9 +6110,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6288,9 +6150,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6530,7 +6391,7 @@ namespace OpenRCT2::MultiDimensionRCInverted session, -3, height + 24, direction, trackSequence, kMultidimDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - const uint16_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + const PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6549,7 +6410,7 @@ namespace OpenRCT2::MultiDimensionRCInverted session, -3, height + 24, direction, trackSequence, kMultidimDiagBlockBrakeImages[trackElement.isBrakeClosed()], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - const uint16_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + const PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp index 13d211348a..a7d032ab48 100644 --- a/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp @@ -364,8 +364,7 @@ static void ReverserRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -394,9 +393,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -426,9 +424,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -436,8 +433,7 @@ static void ReverserRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -466,9 +462,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -588,9 +583,8 @@ static void ReverserRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -624,9 +618,8 @@ static void ReverserRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -741,9 +734,8 @@ static void ReverserRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -777,9 +769,8 @@ static void ReverserRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -895,8 +886,7 @@ static void ReverserRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp index 47d4833343..20aa1d1bcb 100644 --- a/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp @@ -528,8 +528,7 @@ static void SideFrictionRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -570,9 +569,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -614,9 +612,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -624,8 +621,7 @@ static void SideFrictionRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -666,9 +662,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -824,9 +819,8 @@ static void SideFrictionRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -872,9 +866,8 @@ static void SideFrictionRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1025,9 +1018,8 @@ static void SideFrictionRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1073,9 +1065,8 @@ static void SideFrictionRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1227,8 +1218,7 @@ static void SideFrictionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp index 4ab7c38f34..b117ea8905 100644 --- a/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp @@ -909,7 +909,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -944,7 +944,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -987,8 +987,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1045,7 +1044,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1082,9 +1081,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1118,8 +1116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1156,9 +1153,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1203,8 +1199,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1287,9 +1282,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1321,9 +1315,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1332,7 +1325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1372,9 +1365,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1449,9 +1441,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1483,9 +1474,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1494,8 +1484,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1535,9 +1524,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1595,8 +1583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1614,8 +1601,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1632,8 +1618,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1665,7 +1650,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1692,8 +1677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1711,8 +1695,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1729,8 +1712,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1762,7 +1744,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1804,8 +1786,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1838,8 +1819,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1871,8 +1851,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1933,7 +1912,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1975,8 +1954,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2009,8 +1987,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2042,8 +2019,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2104,7 +2080,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2146,8 +2122,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2180,8 +2155,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2213,8 +2187,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2277,7 +2250,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2319,8 +2292,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2353,8 +2325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2386,8 +2357,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2448,7 +2418,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2490,8 +2460,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2523,8 +2492,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -2555,8 +2523,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2616,7 +2583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -2659,8 +2626,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2693,8 +2659,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2726,8 +2691,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2788,7 +2752,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2830,8 +2794,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -2864,8 +2827,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -2897,8 +2859,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -2961,7 +2922,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3003,8 +2964,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3037,8 +2997,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3070,8 +3029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3134,7 +3092,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3176,8 +3134,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3210,8 +3167,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3243,8 +3199,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3307,7 +3262,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3349,8 +3304,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3383,8 +3337,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -3416,8 +3369,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3480,7 +3432,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3522,8 +3474,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3556,8 +3507,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3589,8 +3539,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3653,7 +3602,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3695,8 +3644,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3729,8 +3677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3762,8 +3709,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3824,7 +3770,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4223,8 +4169,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4246,8 +4191,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4264,8 +4208,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4297,7 +4240,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4324,8 +4267,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4343,8 +4285,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4365,8 +4306,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4398,7 +4338,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4425,8 +4365,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4448,8 +4387,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4466,8 +4404,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4499,7 +4436,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4526,8 +4463,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4545,8 +4481,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4567,8 +4502,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4600,7 +4534,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4627,8 +4561,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4650,8 +4583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4668,8 +4600,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4701,7 +4632,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4728,8 +4659,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4747,8 +4677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4769,8 +4698,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4802,7 +4730,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4829,8 +4757,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4852,8 +4779,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4870,8 +4796,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4903,7 +4828,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4930,8 +4855,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4949,8 +4873,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4971,8 +4894,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5004,7 +4926,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5031,8 +4953,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5053,8 +4974,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5070,8 +4990,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5102,7 +5021,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -5130,8 +5049,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5148,8 +5066,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5169,8 +5086,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5201,7 +5117,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -5229,8 +5145,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5252,8 +5167,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5270,8 +5184,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5303,7 +5216,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5330,8 +5243,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5349,8 +5261,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5371,8 +5282,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5404,7 +5314,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5431,8 +5341,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5450,8 +5359,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5468,8 +5376,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5501,7 +5408,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5528,8 +5435,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5547,8 +5453,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5565,8 +5470,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5598,7 +5502,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5653,7 +5557,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5692,7 +5596,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5743,8 +5647,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5807,7 +5710,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5846,9 +5749,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5884,8 +5786,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5924,9 +5825,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5977,8 +5877,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6069,9 +5968,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6107,9 +6005,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6118,7 +6015,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6162,9 +6059,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6247,9 +6143,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6285,9 +6180,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6296,8 +6190,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6341,9 +6234,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6410,7 +6302,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6463,8 +6355,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6515,8 +6406,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6575,8 +6465,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6643,7 +6532,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6682,9 +6571,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6720,8 +6608,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6760,9 +6647,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6809,8 +6695,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6861,8 +6746,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6901,9 +6785,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6939,8 +6822,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6978,9 +6860,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7027,8 +6908,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8123,7 +8003,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8176,8 +8056,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8228,8 +8107,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8288,8 +8166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8358,7 +8235,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8397,9 +8274,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8435,8 +8311,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8475,9 +8350,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8524,8 +8398,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8576,8 +8449,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8616,9 +8488,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8654,8 +8525,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8693,9 +8563,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8742,8 +8611,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8807,7 +8675,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8841,9 +8709,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8877,9 +8744,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8921,8 +8787,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8968,8 +8833,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9002,9 +8866,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9037,9 +8900,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9081,8 +8943,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9132,9 +8993,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9169,7 +9029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9215,9 +9075,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9263,9 +9122,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9300,8 +9158,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9342,9 +9199,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9394,9 +9250,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9431,8 +9286,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9478,9 +9332,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9526,9 +9379,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9563,7 +9415,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9604,9 +9456,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9682,9 +9533,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9719,9 +9569,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9753,8 +9602,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9789,9 +9637,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9837,9 +9684,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9885,9 +9731,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9922,9 +9767,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9956,8 +9800,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9991,9 +9834,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10034,9 +9876,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10085,9 +9926,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10122,9 +9962,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10156,8 +9995,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -10191,9 +10029,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10245,9 +10082,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10293,9 +10129,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10330,9 +10165,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10364,8 +10198,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10400,9 +10233,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10449,9 +10281,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10542,9 +10373,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10588,9 +10418,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10643,9 +10472,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10710,9 +10538,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10756,9 +10583,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10811,9 +10637,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10937,9 +10762,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11470,9 +11294,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11532,9 +11355,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11593,9 +11415,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11655,9 +11476,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11736,9 +11556,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -11782,9 +11601,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11820,7 +11638,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11832,9 +11650,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11910,9 +11727,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11974,9 +11790,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -12020,9 +11835,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12058,8 +11872,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12071,9 +11884,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12148,9 +11960,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12259,9 +12070,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12305,7 +12115,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12341,8 +12151,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12379,9 +12188,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12472,9 +12280,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12518,8 +12325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12556,7 +12362,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12593,9 +12399,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12701,9 +12506,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12750,9 +12554,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -12841,9 +12644,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12890,9 +12692,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13035,9 +12836,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13046,9 +12846,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -13227,9 +13026,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13238,9 +13036,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13466,7 +13263,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13519,8 +13316,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13575,8 +13371,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13629,8 +13424,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13681,7 +13475,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13738,8 +13532,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13790,8 +13583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13848,8 +13640,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13972,9 +13763,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14019,9 +13809,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14057,8 +13846,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14094,9 +13882,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14136,9 +13923,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14261,9 +14047,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14308,9 +14093,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14346,7 +14130,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14382,9 +14166,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14424,9 +14207,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14700,8 +14482,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14734,8 +14515,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14767,8 +14547,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14829,7 +14608,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14871,8 +14650,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14905,8 +14683,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14938,8 +14715,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15002,7 +14778,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15044,8 +14820,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15078,8 +14853,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15111,8 +14885,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15175,7 +14948,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15217,8 +14990,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15251,8 +15023,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15284,8 +15055,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15346,7 +15116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15447,9 +15217,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15485,9 +15254,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15496,7 +15264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15540,9 +15308,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15625,9 +15392,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15663,9 +15429,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15674,8 +15439,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15719,9 +15483,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15774,9 +15537,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15812,9 +15574,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15823,8 +15584,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15859,9 +15619,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15954,9 +15713,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15992,9 +15750,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16003,8 +15760,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16040,9 +15796,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16084,7 +15839,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16144,8 +15899,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16167,8 +15921,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16185,8 +15938,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16218,7 +15970,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16245,8 +15997,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16264,8 +16015,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16286,8 +16036,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16319,7 +16068,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16346,8 +16095,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16369,8 +16117,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16387,8 +16134,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16420,7 +16166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16447,8 +16193,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16466,8 +16211,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16488,8 +16232,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16521,7 +16264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16578,8 +16321,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16597,8 +16339,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16615,8 +16356,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16648,7 +16388,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16675,8 +16415,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16694,8 +16433,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16712,8 +16450,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16745,7 +16482,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16772,8 +16509,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16791,8 +16527,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16809,8 +16544,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16842,7 +16576,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16869,8 +16603,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16888,8 +16621,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16906,8 +16638,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16939,7 +16670,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16998,8 +16729,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17017,8 +16747,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17035,8 +16764,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17068,7 +16796,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17095,8 +16823,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17114,8 +16841,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17132,8 +16858,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17165,7 +16890,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17206,8 +16931,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17229,8 +16953,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17247,8 +16970,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17280,7 +17002,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17307,8 +17029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17326,8 +17047,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17348,8 +17068,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17381,7 +17100,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17408,8 +17127,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17431,8 +17149,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17449,8 +17166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17482,7 +17198,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17509,8 +17225,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17528,8 +17243,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17550,8 +17264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17583,7 +17296,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17696,9 +17409,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17734,9 +17446,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17745,7 +17456,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17789,9 +17500,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17874,9 +17584,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17912,9 +17621,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17923,8 +17631,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17968,9 +17675,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18023,9 +17729,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18061,9 +17766,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18072,8 +17776,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18108,9 +17811,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18201,9 +17903,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18239,9 +17940,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18250,8 +17950,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18287,9 +17986,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18331,7 +18029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18420,8 +18118,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18439,8 +18136,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18457,8 +18153,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18494,9 +18189,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18514,8 +18208,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18532,8 +18225,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18570,9 +18262,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18590,8 +18281,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18608,8 +18298,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18642,7 +18331,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -18669,8 +18358,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18688,8 +18376,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18706,8 +18393,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18744,9 +18430,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18764,8 +18449,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18782,8 +18466,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18820,9 +18503,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18840,8 +18522,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18858,8 +18539,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18891,7 +18571,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18918,8 +18598,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18937,8 +18616,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18955,8 +18633,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18993,9 +18670,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19013,8 +18689,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19031,8 +18706,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19069,9 +18743,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19089,8 +18762,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19107,8 +18779,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19141,7 +18812,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19168,8 +18839,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19187,8 +18857,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19205,8 +18874,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19243,9 +18911,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19263,8 +18930,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19281,8 +18947,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19319,9 +18984,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19339,8 +19003,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19357,8 +19020,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19390,7 +19052,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -19421,8 +19083,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19439,8 +19100,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19456,8 +19116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19497,9 +19156,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19531,9 +19189,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19542,9 +19199,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19611,8 +19267,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19629,8 +19284,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19647,8 +19301,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19687,9 +19340,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19721,9 +19373,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19732,9 +19383,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -19812,8 +19462,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -19830,8 +19479,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -19847,8 +19495,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -19879,7 +19526,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); diff --git a/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp index 3aa61da7d5..af09d00852 100644 --- a/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp @@ -693,8 +693,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -724,9 +723,8 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -754,7 +752,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -785,9 +783,8 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -825,7 +822,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1087,8 +1084,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1122,9 +1118,8 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1156,7 +1151,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1191,9 +1186,8 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1245,7 +1239,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1638,8 +1632,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1694,9 +1687,8 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1749,7 +1741,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1805,9 +1797,8 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1873,7 +1864,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1944,8 +1935,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2000,9 +1990,8 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2055,8 +2044,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2111,9 +2099,8 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2179,8 +2166,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2241,8 +2227,7 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2270,9 +2255,8 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2301,9 +2285,8 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2341,7 +2324,7 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2384,8 +2367,7 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2413,9 +2395,8 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2444,9 +2425,8 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2484,8 +2464,7 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2534,9 +2513,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2573,9 +2551,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2603,8 +2580,7 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2631,9 +2607,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2667,9 +2642,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2697,7 +2671,7 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2734,9 +2708,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2774,9 +2747,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3060,8 +3032,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3091,8 +3062,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3136,7 +3106,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3202,8 +3172,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3237,8 +3206,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3289,7 +3257,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3381,8 +3349,7 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3465,7 +3432,7 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3548,8 +3515,7 @@ static void StandUpRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3632,8 +3598,7 @@ static void StandUpRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3753,9 +3718,8 @@ static void StandUpRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -3834,9 +3798,8 @@ static void StandUpRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -3900,9 +3863,8 @@ static void StandUpRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3961,9 +3923,8 @@ static void StandUpRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4023,9 +3984,8 @@ static void StandUpRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4110,9 +4070,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4147,8 +4106,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4199,9 +4157,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4253,9 +4210,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4290,8 +4246,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4338,9 +4293,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4397,9 +4351,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4434,8 +4387,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4487,9 +4439,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4541,9 +4492,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4578,8 +4528,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4625,9 +4574,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4714,9 +4662,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4751,9 +4698,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4785,7 +4731,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4820,9 +4766,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4874,9 +4819,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4928,9 +4872,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4965,9 +4908,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4999,8 +4941,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5034,9 +4975,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5083,9 +5023,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5142,9 +5081,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5179,9 +5117,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5213,8 +5150,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5248,9 +5184,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5302,9 +5237,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5356,9 +5290,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5393,9 +5326,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5427,7 +5359,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5462,9 +5394,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5511,9 +5442,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5678,9 +5608,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5712,9 +5641,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5723,8 +5651,7 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5763,9 +5690,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5840,9 +5766,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5874,9 +5799,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5885,8 +5809,7 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5926,9 +5849,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6028,9 +5950,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6062,9 +5983,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6073,8 +5993,7 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6113,9 +6032,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6197,9 +6115,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6231,9 +6148,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6242,8 +6158,7 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6283,9 +6198,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6374,7 +6288,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6405,8 +6319,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6436,8 +6349,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6496,8 +6408,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6537,7 +6448,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6568,8 +6479,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6599,8 +6509,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6659,8 +6568,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6700,7 +6608,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6731,8 +6639,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6762,8 +6669,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6822,8 +6728,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6863,7 +6768,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6894,8 +6799,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6925,8 +6829,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6985,8 +6888,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7026,7 +6928,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7057,8 +6959,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7088,8 +6989,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7148,8 +7048,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7189,7 +7088,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7220,8 +7119,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7251,8 +7149,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7311,8 +7208,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7352,7 +7248,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7383,8 +7279,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7414,8 +7309,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7474,8 +7368,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7515,7 +7408,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7546,8 +7439,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7577,8 +7469,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7637,8 +7528,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7678,7 +7568,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7708,8 +7598,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7738,8 +7627,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7797,8 +7685,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7839,7 +7726,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7870,8 +7757,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7901,8 +7787,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7961,8 +7846,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8002,7 +7886,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8033,8 +7917,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8064,8 +7947,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8124,8 +8006,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8165,7 +8046,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8196,8 +8077,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8227,8 +8107,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8287,8 +8166,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8314,7 +8192,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8334,8 +8212,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8351,8 +8228,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8383,8 +8259,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8410,7 +8285,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8427,8 +8302,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8447,8 +8321,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8479,8 +8352,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8506,7 +8378,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8526,8 +8398,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8543,8 +8414,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8575,8 +8445,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8602,7 +8471,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8619,8 +8488,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8639,8 +8507,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8671,8 +8538,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8698,7 +8564,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8718,8 +8584,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8735,8 +8600,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8767,8 +8631,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8794,7 +8657,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8811,8 +8674,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8831,8 +8693,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8863,8 +8724,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8890,7 +8750,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8910,8 +8770,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8927,8 +8786,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8959,8 +8817,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8986,7 +8843,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9003,8 +8860,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9023,8 +8879,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9055,8 +8910,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9082,7 +8936,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9101,8 +8955,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9117,8 +8970,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9148,8 +9000,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9176,7 +9027,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9192,8 +9043,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9211,8 +9061,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9242,8 +9091,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9270,7 +9118,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9290,8 +9138,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9307,8 +9154,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9339,8 +9185,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9366,7 +9211,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9383,8 +9228,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9403,8 +9247,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9435,8 +9278,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9462,7 +9304,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9479,8 +9321,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9496,8 +9337,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9528,8 +9368,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9555,7 +9394,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9572,8 +9411,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9589,8 +9427,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9621,8 +9458,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9777,7 +9613,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9794,8 +9630,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9811,8 +9646,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9843,8 +9677,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9869,7 +9702,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9886,8 +9719,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9903,8 +9735,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9935,8 +9766,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9961,7 +9791,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9978,8 +9808,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9995,8 +9824,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10027,8 +9855,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10053,7 +9880,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10070,8 +9897,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10087,8 +9913,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10119,8 +9944,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11828,8 +11652,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11900,7 +11723,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11950,8 +11773,7 @@ static void StandUpRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12022,8 +11844,7 @@ static void StandUpRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12090,8 +11911,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12129,9 +11949,8 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12167,7 +11986,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -12206,9 +12025,8 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12261,7 +12079,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12311,8 +12129,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12350,9 +12167,8 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12388,8 +12204,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12427,9 +12242,8 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12482,8 +12296,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12581,9 +12394,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12615,9 +12427,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12626,8 +12437,7 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12666,9 +12476,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12749,9 +12558,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12783,9 +12591,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12794,8 +12601,7 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12835,9 +12641,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12886,9 +12691,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12920,9 +12724,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12931,8 +12734,7 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12963,9 +12765,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13056,9 +12857,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13090,9 +12890,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13101,8 +12900,7 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13134,9 +12932,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13179,8 +12976,7 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13242,7 +13038,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13264,8 +13060,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13282,8 +13077,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13315,8 +13109,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13342,7 +13135,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13360,8 +13153,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13382,8 +13174,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13415,8 +13206,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13442,7 +13232,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13464,8 +13254,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13482,8 +13271,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13515,8 +13303,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13542,7 +13329,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13560,8 +13347,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13582,8 +13368,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13615,8 +13400,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13674,7 +13458,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13692,8 +13476,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13710,8 +13493,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13743,8 +13525,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13770,7 +13551,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13788,8 +13569,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13806,8 +13586,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13839,8 +13618,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13866,7 +13644,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13884,8 +13662,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13902,8 +13679,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13935,8 +13711,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13962,7 +13737,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13980,8 +13755,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13998,8 +13772,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14031,8 +13804,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14090,7 +13862,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14108,8 +13880,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14126,8 +13897,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14159,8 +13929,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14186,7 +13955,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14204,8 +13973,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14222,8 +13990,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14255,8 +14022,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14296,7 +14062,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14318,8 +14084,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14336,8 +14101,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14369,8 +14133,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14396,7 +14159,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14414,8 +14177,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14436,8 +14198,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14469,8 +14230,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14496,7 +14256,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14518,8 +14278,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14536,8 +14295,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14569,8 +14327,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14596,7 +14353,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14614,8 +14371,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14636,8 +14392,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14669,8 +14424,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14790,9 +14544,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14828,9 +14581,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14839,8 +14591,7 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14883,9 +14634,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14974,9 +14724,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15012,9 +14761,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15023,8 +14771,7 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15068,9 +14815,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15123,9 +14869,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15161,9 +14906,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15172,8 +14916,7 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15208,9 +14951,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15307,9 +15049,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15345,9 +15086,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15356,8 +15096,7 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15393,9 +15132,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15442,8 +15180,7 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15536,8 +15273,7 @@ static void StandUpRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15617,7 +15353,7 @@ static void StandUpRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15673,8 +15409,7 @@ static void StandUpRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15757,8 +15492,7 @@ static void StandUpRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15823,9 +15557,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -15868,9 +15601,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15897,8 +15629,7 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15909,9 +15640,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15982,9 +15712,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16041,9 +15770,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16086,9 +15814,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16115,8 +15842,7 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16128,9 +15854,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16200,9 +15925,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16427,9 +16151,8 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16469,8 +16192,7 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -16507,8 +16229,7 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -16544,9 +16265,8 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -16640,9 +16360,8 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16682,8 +16401,7 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -16722,8 +16440,7 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -16758,9 +16475,8 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -16910,9 +16626,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -16952,9 +16667,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -16986,8 +16700,7 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -17025,9 +16738,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17063,9 +16775,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17197,9 +16908,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17239,9 +16949,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17273,8 +16982,7 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -17311,9 +17019,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17349,9 +17056,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17424,9 +17130,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -17464,9 +17169,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17513,9 +17217,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17574,9 +17277,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -17614,9 +17316,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17663,9 +17364,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17775,9 +17475,8 @@ static void StandUpRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17824,9 +17523,8 @@ static void StandUpRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -17921,9 +17619,8 @@ static void StandUpRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17970,9 +17667,8 @@ static void StandUpRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18109,9 +17805,8 @@ static void StandUpRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18120,9 +17815,8 @@ static void StandUpRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18287,9 +17981,8 @@ static void StandUpRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18298,9 +17991,8 @@ static void StandUpRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp index 7c9b334b78..ac1091aa56 100644 --- a/src/openrct2/paint/track/coaster/Steeplechase.cpp +++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp @@ -363,8 +363,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -394,9 +393,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -424,7 +422,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -455,9 +453,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -504,7 +501,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -558,8 +555,7 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -588,9 +584,8 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -619,9 +614,8 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -660,7 +654,7 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -703,8 +697,7 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -733,9 +726,8 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -765,9 +757,8 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -805,8 +796,7 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -853,8 +843,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -885,8 +874,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -929,7 +917,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1041,9 +1029,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1075,9 +1062,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1086,8 +1072,7 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1120,9 +1105,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1198,9 +1182,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1232,9 +1215,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1243,8 +1225,7 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1278,9 +1259,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1333,7 +1313,7 @@ static void SteeplechaseTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1371,7 +1351,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1402,8 +1382,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1433,8 +1412,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1467,8 +1445,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1508,7 +1485,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1539,8 +1516,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1570,8 +1546,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1604,8 +1579,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1645,7 +1619,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1676,8 +1650,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1707,8 +1680,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1741,8 +1713,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1782,7 +1753,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1813,8 +1784,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1844,8 +1814,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1878,8 +1847,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1919,7 +1887,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1949,8 +1917,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1979,8 +1946,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2012,8 +1978,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -2054,7 +2019,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2085,8 +2050,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2116,8 +2080,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2150,8 +2113,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; diff --git a/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp index 2cc11bb260..7309365a49 100644 --- a/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp @@ -660,9 +660,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -702,9 +701,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -735,7 +733,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -768,9 +766,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -803,9 +800,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -866,9 +862,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -906,9 +901,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -936,7 +930,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -968,9 +962,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -999,9 +992,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1052,9 +1044,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1092,9 +1083,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1122,8 +1112,7 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -1154,9 +1143,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1185,9 +1173,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1258,8 +1245,7 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1293,9 +1279,8 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1326,9 +1311,8 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1359,7 +1343,7 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1409,8 +1393,7 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1444,9 +1427,8 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1477,9 +1459,8 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1510,8 +1491,7 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1564,9 +1544,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1607,8 +1586,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1640,9 +1618,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1703,9 +1680,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1747,9 +1723,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1800,9 +1775,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1844,9 +1818,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1952,9 +1925,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1996,9 +1968,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2030,7 +2001,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2065,9 +2036,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2100,9 +2070,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2157,9 +2126,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2201,9 +2169,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2235,8 +2202,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2270,9 +2236,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2305,9 +2270,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2362,9 +2326,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2406,9 +2369,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2440,7 +2402,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2475,9 +2437,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2510,9 +2471,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2567,9 +2527,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2611,9 +2570,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2645,8 +2603,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2680,9 +2637,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2715,9 +2671,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2772,8 +2727,7 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2812,9 +2766,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2846,9 +2799,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2857,8 +2809,7 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2890,9 +2841,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2955,7 +2905,7 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2994,9 +2944,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3028,9 +2977,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3039,8 +2987,7 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3073,9 +3020,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3175,7 +3121,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3206,8 +3152,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3237,8 +3182,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3270,8 +3214,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3317,7 +3260,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -3334,8 +3277,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -3351,8 +3293,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -3370,8 +3311,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3431,7 +3371,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3462,8 +3402,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -3493,8 +3432,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3526,8 +3464,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3573,7 +3510,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3590,8 +3527,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -3607,8 +3543,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3626,8 +3561,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3673,7 +3607,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3690,8 +3624,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -3707,8 +3640,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3726,8 +3658,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3787,7 +3718,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3818,8 +3749,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3849,8 +3779,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3882,8 +3811,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3943,7 +3871,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3974,8 +3902,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4005,8 +3932,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4038,8 +3964,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4085,7 +4010,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -4102,8 +4027,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -4119,8 +4043,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -4137,8 +4060,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -4178,7 +4100,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4208,8 +4130,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4238,8 +4159,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4270,8 +4190,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4317,7 +4236,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4334,8 +4253,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -4351,8 +4269,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4370,8 +4287,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4417,7 +4333,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4434,8 +4350,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -4451,8 +4366,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4470,8 +4384,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4531,7 +4444,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4562,8 +4475,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4593,8 +4505,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4626,8 +4537,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index 37cdfd9194..915f8d5dec 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -711,8 +711,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -746,9 +745,8 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -780,7 +778,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -815,9 +813,8 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -859,7 +856,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1091,8 +1088,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1126,9 +1122,8 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1160,7 +1155,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1195,9 +1190,8 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1242,7 +1236,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1563,8 +1557,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1596,9 +1589,8 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1629,7 +1621,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1662,9 +1654,8 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1706,7 +1697,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1752,8 +1743,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1785,9 +1775,8 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1818,8 +1807,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1851,9 +1839,8 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1895,8 +1882,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1958,8 +1944,7 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1989,9 +1974,8 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2022,9 +2006,8 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2066,7 +2049,7 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2112,8 +2095,7 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2143,9 +2125,8 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2176,9 +2157,8 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2220,8 +2200,7 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2269,9 +2248,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2307,9 +2285,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2341,8 +2318,7 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2369,9 +2345,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2405,9 +2380,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2439,7 +2413,7 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2475,9 +2449,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2522,9 +2495,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2802,8 +2774,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2837,8 +2808,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2879,7 +2849,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2936,8 +2906,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2971,8 +2940,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3016,7 +2984,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3066,8 +3034,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3110,7 +3077,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3152,8 +3119,7 @@ static void TwisterRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3203,8 +3169,7 @@ static void TwisterRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3269,9 +3234,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3306,8 +3270,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3351,9 +3314,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3398,9 +3360,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3435,8 +3396,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3476,9 +3436,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3527,9 +3486,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3564,8 +3522,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3610,9 +3567,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3657,9 +3613,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3694,8 +3649,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3734,9 +3688,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3813,9 +3766,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3850,9 +3802,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3884,7 +3835,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3919,9 +3870,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3966,9 +3916,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4013,9 +3962,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4050,9 +3998,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4084,8 +4031,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4119,9 +4065,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4161,9 +4106,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4212,9 +4156,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4249,9 +4192,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4283,8 +4225,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4318,9 +4259,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4372,9 +4312,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4419,9 +4358,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4456,9 +4394,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4490,7 +4427,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4525,9 +4462,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4574,9 +4510,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5124,9 +5059,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5158,9 +5092,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5169,8 +5102,7 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5209,9 +5141,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5285,9 +5216,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5319,9 +5249,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5330,8 +5259,7 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5371,9 +5299,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5463,9 +5390,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5497,9 +5423,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5508,8 +5433,7 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5548,9 +5472,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5624,9 +5547,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5658,9 +5580,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5669,8 +5590,7 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5710,9 +5630,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5781,7 +5700,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5812,8 +5731,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5843,8 +5761,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5903,8 +5820,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5943,7 +5859,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5974,8 +5890,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6005,8 +5920,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6065,8 +5979,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6105,7 +6018,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6136,8 +6049,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6167,8 +6079,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6227,8 +6138,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6267,7 +6177,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6298,8 +6208,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6329,8 +6238,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6389,8 +6297,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6429,7 +6336,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6460,8 +6367,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6491,8 +6397,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6551,8 +6456,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6591,7 +6495,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6622,8 +6526,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6653,8 +6556,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6713,8 +6615,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6753,7 +6654,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6784,8 +6685,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6815,8 +6715,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6875,8 +6774,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6915,7 +6813,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6946,8 +6844,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6977,8 +6874,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7037,8 +6933,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7077,7 +6972,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7107,8 +7002,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7137,8 +7031,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7196,8 +7089,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7237,7 +7129,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7268,8 +7160,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7299,8 +7190,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7359,8 +7249,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7399,7 +7288,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7430,8 +7319,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7461,8 +7349,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7521,8 +7408,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7561,7 +7447,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7592,8 +7478,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7623,8 +7508,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7683,8 +7567,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7723,7 +7606,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7754,8 +7637,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7785,8 +7667,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7845,8 +7726,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7885,7 +7765,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7916,8 +7796,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7947,8 +7826,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8007,8 +7885,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8047,7 +7924,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8078,8 +7955,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8109,8 +7985,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8169,8 +8044,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8209,7 +8083,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8240,8 +8114,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8271,8 +8144,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8331,8 +8203,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8357,7 +8228,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8377,8 +8248,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8394,8 +8264,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8426,8 +8295,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8452,7 +8320,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8469,8 +8337,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8489,8 +8356,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8521,8 +8387,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8547,7 +8412,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8567,8 +8432,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8584,8 +8448,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8616,8 +8479,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8642,7 +8504,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8659,8 +8521,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8679,8 +8540,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8711,8 +8571,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8737,7 +8596,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8757,8 +8616,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8774,8 +8632,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8806,8 +8663,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8832,7 +8688,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8849,8 +8705,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8869,8 +8724,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8901,8 +8755,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8927,7 +8780,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8947,8 +8800,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8964,8 +8816,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8996,8 +8847,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9022,7 +8872,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9039,8 +8889,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9059,8 +8908,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9091,8 +8939,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9117,7 +8964,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9136,8 +8983,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9152,8 +8998,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9183,8 +9028,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9210,7 +9054,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9226,8 +9070,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9245,8 +9088,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9276,8 +9118,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9303,7 +9144,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9323,8 +9164,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9340,8 +9180,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9372,8 +9211,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9398,7 +9236,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9415,8 +9253,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9435,8 +9272,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9467,8 +9303,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9493,7 +9328,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9510,8 +9345,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9527,8 +9361,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9559,8 +9392,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9585,7 +9417,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9602,8 +9434,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9619,8 +9450,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9651,8 +9481,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9696,8 +9525,7 @@ static void TwisterRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9740,7 +9568,7 @@ static void TwisterRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9785,8 +9613,7 @@ static void TwisterRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9836,8 +9663,7 @@ static void TwisterRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9885,8 +9711,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9932,7 +9757,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9974,8 +9799,7 @@ static void TwisterRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10021,8 +9845,7 @@ static void TwisterRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10093,8 +9916,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10139,7 +9961,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10182,8 +10004,7 @@ static void TwisterRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10235,8 +10056,7 @@ static void TwisterRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10299,8 +10119,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10333,9 +10152,8 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10366,7 +10184,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10401,9 +10219,8 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10445,7 +10262,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10491,8 +10308,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10525,9 +10341,8 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10558,8 +10373,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10593,9 +10407,8 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10637,8 +10450,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11724,9 +11536,8 @@ static void TwisterRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11863,9 +11674,8 @@ static void TwisterRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11923,9 +11733,8 @@ static void TwisterRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11985,9 +11794,8 @@ static void TwisterRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -12403,9 +12211,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -12449,9 +12256,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12504,9 +12310,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12571,9 +12376,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -12617,9 +12421,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12672,9 +12475,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12833,9 +12635,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12875,9 +12676,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12909,8 +12709,7 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -12942,9 +12741,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12980,9 +12778,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13085,9 +12882,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -13127,9 +12923,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13161,8 +12956,7 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -13193,9 +12987,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13231,9 +13024,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13427,9 +13219,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13457,9 +13248,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13487,9 +13277,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13548,9 +13337,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13578,9 +13366,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13608,9 +13395,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13659,9 +13445,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13696,9 +13481,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13741,9 +13525,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13780,9 +13563,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13817,9 +13599,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13862,9 +13643,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13886,7 +13666,7 @@ void TwisterRCTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -13905,7 +13685,7 @@ void TwisterRCTrackDiagBlockBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -13950,9 +13730,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13981,9 +13760,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14013,9 +13791,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -14075,9 +13852,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14105,9 +13881,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14136,9 +13911,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -14253,9 +14027,8 @@ static void TwisterRCTrackFlyerHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -14357,9 +14130,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14391,9 +14163,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14402,8 +14173,7 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14442,9 +14212,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14518,9 +14287,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14552,9 +14320,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14563,8 +14330,7 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14604,9 +14370,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14655,9 +14420,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14689,9 +14453,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14700,8 +14463,7 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14732,9 +14494,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14818,9 +14579,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14852,9 +14612,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14863,8 +14622,7 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14896,9 +14654,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14934,8 +14691,7 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14996,7 +14752,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15016,8 +14772,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15033,8 +14788,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15065,8 +14819,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15091,7 +14844,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15108,8 +14861,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15128,8 +14880,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15160,8 +14911,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15187,7 +14937,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15209,8 +14959,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15227,8 +14976,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15260,8 +15008,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15287,7 +15034,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15305,8 +15052,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15327,8 +15073,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15360,8 +15105,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15419,7 +15163,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15437,8 +15181,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15455,8 +15198,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15488,8 +15230,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15515,7 +15256,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15533,8 +15274,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15551,8 +15291,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15584,8 +15323,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15611,7 +15349,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15629,8 +15367,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15647,8 +15384,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15680,8 +15416,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15707,7 +15442,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15725,8 +15460,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15743,8 +15477,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15776,8 +15509,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15835,7 +15567,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15853,8 +15585,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15871,8 +15602,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15904,8 +15634,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15931,7 +15660,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15949,8 +15678,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15967,8 +15695,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16000,8 +15727,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16041,7 +15767,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16063,8 +15789,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16081,8 +15806,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16114,8 +15838,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16141,7 +15864,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16159,8 +15882,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16181,8 +15903,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16214,8 +15935,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16241,7 +15961,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16263,8 +15983,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16281,8 +16000,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16314,8 +16032,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16341,7 +16058,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16359,8 +16076,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16381,8 +16097,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16414,8 +16129,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16535,9 +16249,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16573,9 +16286,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16584,8 +16296,7 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16628,9 +16339,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16719,9 +16429,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16757,9 +16466,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16768,8 +16476,7 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16813,9 +16520,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16868,9 +16574,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16906,9 +16611,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16917,8 +16621,7 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16953,9 +16656,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17052,9 +16754,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17090,9 +16791,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17101,8 +16801,7 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17138,9 +16837,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17187,8 +16885,7 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17273,9 +16970,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17315,9 +17011,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17349,8 +17044,7 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17361,9 +17055,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17428,9 +17121,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17487,9 +17179,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17529,9 +17220,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17563,8 +17253,7 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17576,9 +17265,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17642,9 +17330,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17752,9 +17439,8 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17794,8 +17480,7 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17826,8 +17511,7 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17860,9 +17544,8 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -17950,9 +17633,8 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17992,8 +17674,7 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -18026,8 +17707,7 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -18059,9 +17739,8 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -18167,9 +17846,8 @@ static void TwisterRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18216,9 +17894,8 @@ static void TwisterRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18307,9 +17984,8 @@ static void TwisterRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18356,9 +18032,8 @@ static void TwisterRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18485,9 +18160,8 @@ static void TwisterRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18496,9 +18170,8 @@ static void TwisterRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18653,9 +18326,8 @@ static void TwisterRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18664,9 +18336,8 @@ static void TwisterRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18751,7 +18422,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18768,8 +18439,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18785,8 +18455,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18820,9 +18489,8 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18839,8 +18507,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18856,8 +18523,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18891,9 +18557,8 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18910,8 +18575,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18927,8 +18591,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18959,8 +18622,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -18985,7 +18647,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19002,8 +18664,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19019,8 +18680,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19054,9 +18714,8 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19073,8 +18732,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19090,8 +18748,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19125,9 +18782,8 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19144,8 +18800,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19161,8 +18816,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19193,8 +18847,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19219,7 +18872,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19236,8 +18889,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19253,8 +18905,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19288,9 +18939,8 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19307,8 +18957,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19324,8 +18973,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19359,9 +19007,8 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19378,8 +19025,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19395,8 +19041,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19427,8 +19072,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -19453,7 +19097,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19470,8 +19114,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19487,8 +19130,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19522,9 +19164,8 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19541,8 +19182,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19558,8 +19198,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19593,9 +19232,8 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19612,8 +19250,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19629,8 +19266,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19661,8 +19297,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -19692,7 +19327,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19709,8 +19344,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19726,8 +19360,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19767,9 +19400,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19801,9 +19433,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19812,9 +19443,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19878,7 +19508,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19895,8 +19525,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19913,8 +19542,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19953,9 +19581,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19987,9 +19614,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19998,9 +19624,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/VirginiaReel.cpp b/src/openrct2/paint/track/coaster/VirginiaReel.cpp index 5969c9a840..9c7f18a9bd 100644 --- a/src/openrct2/paint/track/coaster/VirginiaReel.cpp +++ b/src/openrct2/paint/track/coaster/VirginiaReel.cpp @@ -393,8 +393,7 @@ static void PaintVirginiaReelTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 0: diff --git a/src/openrct2/paint/track/coaster/WildMouse.cpp b/src/openrct2/paint/track/coaster/WildMouse.cpp index d02626abc1..a7a728100f 100644 --- a/src/openrct2/paint/track/coaster/WildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WildMouse.cpp @@ -538,20 +538,18 @@ static void WildMouseTrackRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -602,16 +600,14 @@ static void WildMouseTrackRightQuarterTurn325DegDown( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -683,16 +679,14 @@ static void WildMouseTrackRightQuarterTurn325DegUp( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -751,7 +745,7 @@ static void WildMouseTrackLeftQuarterTurn1( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp index 2674a4da42..d748a88606 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp @@ -3011,32 +3011,30 @@ static void WoodenRCTrackRightQuarterTurn5( session, supportType.wooden, supportSubType[direction][trackSequence], height, session.SupportColours); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 6: blockedSegments = kSegmentsAll; @@ -3210,8 +3208,7 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3274,9 +3271,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3340,9 +3336,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3350,8 +3345,7 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3420,9 +3414,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3571,8 +3564,7 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3635,9 +3627,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3701,9 +3692,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3711,8 +3701,7 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3781,9 +3770,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4013,9 +4001,8 @@ static void WoodenRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4079,9 +4066,8 @@ static void WoodenRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4287,9 +4273,8 @@ static void WoodenRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4353,9 +4338,8 @@ static void WoodenRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4467,9 +4451,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4505,9 +4488,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4539,8 +4521,7 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -4571,9 +4552,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4611,9 +4591,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4645,7 +4624,7 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4681,9 +4660,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4722,9 +4700,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5100,8 +5077,7 @@ static void WoodenRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5276,8 +5252,7 @@ static void WoodenRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5436,8 +5411,7 @@ static void WoodenRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -10261,8 +10235,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -10421,8 +10394,7 @@ static void WoodenRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -10598,8 +10570,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10662,9 +10633,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10728,9 +10698,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10738,8 +10707,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10808,9 +10776,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10959,8 +10926,7 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11023,9 +10989,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11089,9 +11054,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11099,8 +11063,7 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11169,9 +11132,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12434,9 +12396,8 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12478,8 +12439,7 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12513,8 +12473,7 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12547,9 +12506,8 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12642,9 +12600,8 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12686,8 +12643,7 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12723,8 +12679,7 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12756,9 +12711,8 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12898,9 +12852,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12943,9 +12896,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12977,8 +12929,7 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -13016,9 +12967,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13054,9 +13004,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13174,9 +13123,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -13219,9 +13167,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13253,8 +13200,7 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -13291,9 +13237,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13329,9 +13274,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp index 14a2bd946a..ff2e0d97d5 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp @@ -297,17 +297,17 @@ namespace OpenRCT2::WoodenRC TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr int blockedSegments[4] = { + static constexpr PaintSegments kBlockedSegments[4] = { kSegmentsAll, kSegmentsNone, - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -508,26 +508,23 @@ namespace OpenRCT2::WoodenRC TrackPaintUtilRightQuarterTurn5TilesTunnel( session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr int blockedSegments[7] = { + static constexpr PaintSegments kBlockedSegments[7] = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -590,15 +587,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -664,7 +660,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -725,15 +721,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -794,15 +788,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -868,8 +860,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -925,15 +916,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1000,15 +989,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1074,8 +1061,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1136,15 +1122,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1205,15 +1189,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1279,7 +1261,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1335,15 +1317,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1410,15 +1391,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1427,7 +1407,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1478,9 +1458,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1532,14 +1511,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1548,7 +1526,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1599,9 +1577,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1662,15 +1639,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1731,15 +1706,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1747,8 +1720,7 @@ namespace OpenRCT2::WoodenRC case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1799,9 +1771,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1853,23 +1824,20 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1920,9 +1888,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1978,15 +1945,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2053,15 +2018,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2069,8 +2032,7 @@ namespace OpenRCT2::WoodenRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2121,9 +2083,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2175,23 +2136,20 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2242,9 +2200,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2305,15 +2262,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2374,15 +2329,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2391,7 +2344,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2442,9 +2395,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2496,14 +2448,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2512,7 +2463,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2563,9 +2514,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2621,15 +2571,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2703,7 +2652,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2839,8 +2788,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); diff --git a/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp index 250d7418d4..f7071fcb0f 100644 --- a/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp @@ -142,9 +142,8 @@ static void WoodenWildMouseTrackFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), height, 0x20); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -524,15 +523,15 @@ static void WoodenWildMouseTrackRightQuarterTurn3( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }; break; case 3: blockedSegments = kSegmentsAll; diff --git a/src/openrct2/paint/track/gentle/CarRide.cpp b/src/openrct2/paint/track/gentle/CarRide.cpp index 7ecd003ba3..796f89107d 100644 --- a/src/openrct2/paint/track/gentle/CarRide.cpp +++ b/src/openrct2/paint/track/gentle/CarRide.cpp @@ -184,9 +184,7 @@ static void PaintCarRideTrackFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -225,9 +223,7 @@ static void PaintCarRideTrack25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -266,9 +262,7 @@ static void PaintCarRideTrackFlatTo25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 3, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -307,9 +301,7 @@ static void PaintCarRideTrack25DegUpToFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -380,20 +372,18 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -534,9 +524,7 @@ static void PaintCarRideTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -593,9 +581,7 @@ static void PaintCarRideTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -652,9 +638,7 @@ static void PaintCarRideTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -710,9 +694,7 @@ static void PaintCarRideTrackLogBumps( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/Circus.cpp b/src/openrct2/paint/track/gentle/Circus.cpp index 2b688c8393..fd6e0fc3d9 100644 --- a/src/openrct2/paint/track/gentle/Circus.cpp +++ b/src/openrct2/paint/track/gentle/Circus.cpp @@ -93,29 +93,29 @@ static void PaintCircus( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // Top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // Right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // Left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // Bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/CrookedHouse.cpp b/src/openrct2/paint/track/gentle/CrookedHouse.cpp index b4242b9942..706701a54f 100644 --- a/src/openrct2/paint/track/gentle/CrookedHouse.cpp +++ b/src/openrct2/paint/track/gentle/CrookedHouse.cpp @@ -119,29 +119,29 @@ static void PaintCrookedHouse( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // Top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // Right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // Left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // Bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/GhostTrain.cpp b/src/openrct2/paint/track/gentle/GhostTrain.cpp index 47e3a73ff4..4ef9fc5ee6 100644 --- a/src/openrct2/paint/track/gentle/GhostTrain.cpp +++ b/src/openrct2/paint/track/gentle/GhostTrain.cpp @@ -202,9 +202,7 @@ static void PaintGhostTrainTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -242,9 +240,7 @@ static void PaintGhostTrainTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -293,9 +289,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -316,9 +310,7 @@ static void PaintGhostTrainTrack25DegUpToFlatShared( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -434,20 +426,18 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -541,9 +531,7 @@ static void PaintGhostTrainTrackBrakes( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/HauntedHouse.cpp b/src/openrct2/paint/track/gentle/HauntedHouse.cpp index 7e248d9f8b..6e9f704a38 100644 --- a/src/openrct2/paint/track/gentle/HauntedHouse.cpp +++ b/src/openrct2/paint/track/gentle/HauntedHouse.cpp @@ -96,29 +96,29 @@ static void PaintHauntedHouse( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/Maze.cpp b/src/openrct2/paint/track/gentle/Maze.cpp index 2aeb73c96b..2e9ea2a362 100644 --- a/src/openrct2/paint/track/gentle/Maze.cpp +++ b/src/openrct2/paint/track/gentle/Maze.cpp @@ -64,7 +64,7 @@ static void MazePaintSetup( session, WoodenSupportType::truss, WoodenSupportSubType::nwSe, rotation, height, GetShopSupportColourScheme(session, trackElement)); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), 0xFFFF, 0); int32_t baseImageId = 0; switch (EnumValue(ride.trackColours[0].supports)) @@ -174,7 +174,7 @@ static void MazePaintSetup( imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnCentre); PaintAddImageAsParent(session, imageId, { 14, 14, height }, { { 15, 15, height + 2 }, { 2, 2, 8 } }); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), height + 12, 0x20); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, height + 12, 0x20); } PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/gentle/MerryGoRound.cpp b/src/openrct2/paint/track/gentle/MerryGoRound.cpp index 52e0cbce90..c2d149323a 100644 --- a/src/openrct2/paint/track/gentle/MerryGoRound.cpp +++ b/src/openrct2/paint/track/gentle/MerryGoRound.cpp @@ -147,29 +147,29 @@ static void PaintMerryGoRound( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } diff --git a/src/openrct2/paint/track/gentle/MiniGolf.cpp b/src/openrct2/paint/track/gentle/MiniGolf.cpp index 28be63e620..32f9752e28 100644 --- a/src/openrct2/paint/track/gentle/MiniGolf.cpp +++ b/src/openrct2/paint/track/gentle/MiniGolf.cpp @@ -508,9 +508,7 @@ static void PaintMiniGolfTrackFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); if (MiniGolfPaintUtilShouldDrawFence(session, trackElement)) @@ -548,9 +546,7 @@ static void PaintMiniGolfTrack25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSprites25DegUp[direction][1]); @@ -590,9 +586,7 @@ static void PaintMiniGolfTrackFlatTo25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSpritesFlatTo25DegUp[direction][1]); @@ -632,9 +626,7 @@ static void PaintMiniGolfTrack25DegUpToFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSprites25DegUpToFlat[direction][1]); @@ -762,7 +754,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); const bool shouldDrawFence = MiniGolfPaintUtilShouldDrawFence(session, trackElement); diff --git a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp index 04f4a8147e..69f62e910a 100644 --- a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp +++ b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp @@ -80,9 +80,7 @@ static void PaintMiniHelicoptersTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -124,9 +122,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -168,9 +164,7 @@ static void PaintMiniHelicoptersTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -212,9 +206,7 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -262,16 +254,14 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -279,7 +269,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -318,7 +308,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp index 3281afa424..93b631baa9 100644 --- a/src/openrct2/paint/track/gentle/MonorailCycles.cpp +++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp @@ -182,9 +182,7 @@ static void PaintMonorailCyclesTrackFlat( session, supportType.metal, MetalSupportPlace::centre, direction, -1, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -239,16 +237,14 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -256,7 +252,7 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -357,17 +353,15 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -375,17 +369,15 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -393,8 +385,7 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -463,7 +454,7 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -471,9 +462,8 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -481,9 +471,8 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -491,7 +480,7 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }, direction & 1), 0xFFFF, 0); break; @@ -550,7 +539,7 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -558,9 +547,8 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -568,9 +556,8 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -578,7 +565,7 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }, direction & 1), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/gentle/ObservationTower.cpp b/src/openrct2/paint/track/gentle/ObservationTower.cpp index 5841714f80..9f2c26aa03 100644 --- a/src/openrct2/paint/track/gentle/ObservationTower.cpp +++ b/src/openrct2/paint/track/gentle/ObservationTower.cpp @@ -67,42 +67,40 @@ static void PaintObservationTowerBase( return; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/SpaceRings.cpp b/src/openrct2/paint/track/gentle/SpaceRings.cpp index 955e0f3b34..0419e6e19e 100644 --- a/src/openrct2/paint/track/gentle/SpaceRings.cpp +++ b/src/openrct2/paint/track/gentle/SpaceRings.cpp @@ -142,45 +142,40 @@ static void PaintSpaceRings( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { - case 0: - cornerSegments = 0; - break; case 1: - cornerSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + cornerSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + cornerSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - cornerSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + cornerSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - cornerSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + cornerSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - cornerSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - cornerSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + cornerSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - cornerSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + cornerSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/thrill/3dCinema.cpp b/src/openrct2/paint/track/thrill/3dCinema.cpp index 9534724ac8..a630493526 100644 --- a/src/openrct2/paint/track/thrill/3dCinema.cpp +++ b/src/openrct2/paint/track/thrill/3dCinema.cpp @@ -93,29 +93,29 @@ static void Paint3dCinema( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/thrill/Enterprise.cpp b/src/openrct2/paint/track/thrill/Enterprise.cpp index 4983e467ed..c6b753643f 100644 --- a/src/openrct2/paint/track/thrill/Enterprise.cpp +++ b/src/openrct2/paint/track/thrill/Enterprise.cpp @@ -152,24 +152,24 @@ static void PaintEnterprise( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 0: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 12: - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 15: - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); } diff --git a/src/openrct2/paint/track/thrill/GoKarts.cpp b/src/openrct2/paint/track/thrill/GoKarts.cpp index ca4621db7e..0d44e914f2 100644 --- a/src/openrct2/paint/track/thrill/GoKarts.cpp +++ b/src/openrct2/paint/track/thrill/GoKarts.cpp @@ -1935,10 +1935,10 @@ static void TrackLeftQuarterTurn3Tiles( WoodenSupportTransitionType::none); } TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -1978,19 +1978,16 @@ static void TrackLeftQuarterTurn5Tiles( { PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2291,10 +2288,10 @@ static void TrackLeftQuarterTurn3TilesUp25( PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2349,10 +2346,10 @@ static void TrackRightQuarterTurn3TilesUp25( PaintUtilPushTunnelRotated(session, DirectionNext(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2418,19 +2415,16 @@ static void TrackLeftQuarterTurn5TilesUp25( PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2478,19 +2472,16 @@ static void TrackRightQuarterTurn5TilesUp25( PaintUtilPushTunnelRotated(session, DirectionNext(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2712,14 +2703,12 @@ static void TrackSBendLeft( { PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2747,14 +2736,12 @@ static void TrackSBendRight( { PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp index 0e1c900df4..244de58c9f 100644 --- a/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp +++ b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp @@ -65,45 +65,43 @@ static void PaintLaunchedFreefallBase( height -= 64; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/thrill/RotoDrop.cpp b/src/openrct2/paint/track/thrill/RotoDrop.cpp index 3156653f7a..fc09564464 100644 --- a/src/openrct2/paint/track/thrill/RotoDrop.cpp +++ b/src/openrct2/paint/track/thrill/RotoDrop.cpp @@ -72,42 +72,40 @@ static void PaintRotoDropBase( return; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/thrill/TopSpin.cpp b/src/openrct2/paint/track/thrill/TopSpin.cpp index 704b61e895..e51ae4ff48 100644 --- a/src/openrct2/paint/track/thrill/TopSpin.cpp +++ b/src/openrct2/paint/track/thrill/TopSpin.cpp @@ -219,29 +219,29 @@ static void PaintTopSpin( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); } diff --git a/src/openrct2/paint/track/thrill/Twist.cpp b/src/openrct2/paint/track/thrill/Twist.cpp index 2887355e70..b9562bf7b4 100644 --- a/src/openrct2/paint/track/thrill/Twist.cpp +++ b/src/openrct2/paint/track/thrill/Twist.cpp @@ -143,25 +143,25 @@ static void PaintTwist( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } diff --git a/src/openrct2/paint/track/transport/Chairlift.cpp b/src/openrct2/paint/track/transport/Chairlift.cpp index 2ae2ca7523..7041d202d9 100644 --- a/src/openrct2/paint/track/transport/Chairlift.cpp +++ b/src/openrct2/paint/track/transport/Chairlift.cpp @@ -84,13 +84,14 @@ const uint32_t chairlift_bullwheel_frames[] = { SPR_CHAIRLIFT_BULLWHEEL_FRAME_4, }; -static void ChairliftPaintUtilDrawSupports(PaintSession& session, int32_t segments, uint16_t height, SupportType supportType) +static void ChairliftPaintUtilDrawSupports( + PaintSession& session, PaintSegments segments, uint16_t height, SupportType supportType) { bool success = false; for (uint8_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (!(segments & kSegmentOffsets[s])) + if (!(segments.has(kSegmentOffsets[s]))) { continue; } @@ -110,7 +111,7 @@ static void ChairliftPaintUtilDrawSupports(PaintSession& session, int32_t segmen SupportHeight* supportSegments = session.SupportSegments; for (uint8_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (!(segments & kSegmentOffsets[s])) + if (!(segments.has(kSegmentOffsets[s]))) { continue; } @@ -489,7 +490,7 @@ static void ChairliftPaintFlatTo25DegUp( break; } - ChairliftPaintUtilDrawSupports(session, EnumToFlag(PaintSegment::centre), height, supportType); + ChairliftPaintUtilDrawSupports(session, PaintSegment::centre, height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -544,7 +545,7 @@ static void ChairliftPaint25DegUpToFlat( break; } - ChairliftPaintUtilDrawSupports(session, EnumToFlag(PaintSegment::centre), height, supportType); + ChairliftPaintUtilDrawSupports(session, PaintSegment::centre, height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -635,8 +636,7 @@ static void ChairliftPaintLeftQuarterTurn1Tile( } ChairliftPaintUtilDrawSupports( - session, PaintUtilRotateSegments(EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), direction), height, - supportType); + session, PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/transport/Lift.cpp b/src/openrct2/paint/track/transport/Lift.cpp index 6e9a4c8548..285810df91 100644 --- a/src/openrct2/paint/track/transport/Lift.cpp +++ b/src/openrct2/paint/track/transport/Lift.cpp @@ -78,42 +78,40 @@ static void PaintLiftBase( session, edges, session.MapPosition, trackElement, ride, session.TrackColours, height, kFenceSpritesPicketDuplicate, session.CurrentRotation); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/transport/MiniatureRailway.cpp b/src/openrct2/paint/track/transport/MiniatureRailway.cpp index 8c783ea744..8b192f7d1e 100644 --- a/src/openrct2/paint/track/transport/MiniatureRailway.cpp +++ b/src/openrct2/paint/track/transport/MiniatureRailway.cpp @@ -1042,32 +1042,30 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn5Tiles( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }; break; case 6: blockedSegments = kSegmentsAll; @@ -1175,21 +1173,19 @@ static void PaintMiniatureRailwayTrackSBendLeft( } } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: blockedSegments = kSegmentsAll; @@ -1286,21 +1282,19 @@ static void PaintMiniatureRailwayTrackSBendRight( } } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: blockedSegments = kSegmentsAll; @@ -1402,15 +1396,15 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn3Tiles( } TrackPaintUtilRightQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: blockedSegments = kSegmentsAll; diff --git a/src/openrct2/paint/track/transport/Monorail.cpp b/src/openrct2/paint/track/transport/Monorail.cpp index 2849122bf1..80c3ae8199 100644 --- a/src/openrct2/paint/track/transport/Monorail.cpp +++ b/src/openrct2/paint/track/transport/Monorail.cpp @@ -436,9 +436,7 @@ static void PaintMonorailTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -512,9 +510,7 @@ static void PaintMonorailTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -557,9 +553,7 @@ static void PaintMonorailTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -602,9 +596,7 @@ static void PaintMonorailTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -670,30 +662,25 @@ static void PaintMonorailTrackRightQuarterTurn5Tiles( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } @@ -758,26 +745,22 @@ static void PaintMonorailTrackSBendLeft( } DrawSBendLeftSupports(session, supportType.metal, originalTrackSequence, direction, height, 0, 0); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction & 1), 0xFFFF, 0); @@ -828,26 +811,22 @@ static void PaintMonorailTrackSBendRight( } DrawSBendRightSupports(session, supportType.metal, originalTrackSequence, direction, height, 0, 0); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction & 1), 0xFFFF, 0); @@ -873,20 +852,18 @@ static void PaintMonorailTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -953,30 +930,26 @@ static void PaintMonorailTrackLeftEighthToDiag( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -1029,29 +1002,27 @@ static void PaintMonorailTrackRightEighthToDiag( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -1101,7 +1072,7 @@ static void PaintMonorailTrackDiag25DegUp( session, supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1121,7 +1092,7 @@ static void PaintMonorailTrackDiagFlatTo25DegUp( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -1141,7 +1112,7 @@ static void PaintMonorailTrackDiag25DegUpToFlat( session, supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1161,7 +1132,7 @@ static void PaintMonorailTrackDiag25DegDown( session, supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1181,7 +1152,7 @@ static void PaintMonorailTrackDiagFlatTo25DegDown( session, supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1201,7 +1172,7 @@ static void PaintMonorailTrackDiag25DegDownToFlat( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/transport/SuspendedMonorail.cpp b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp index 4834af99dd..d66b78e082 100644 --- a/src/openrct2/paint/track/transport/SuspendedMonorail.cpp +++ b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp @@ -329,9 +329,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -371,9 +370,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -404,7 +402,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -437,9 +435,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -472,9 +469,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -539,8 +535,7 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -576,9 +571,8 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -611,9 +605,8 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -648,7 +641,7 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -702,8 +695,7 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -739,9 +731,8 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -774,9 +765,8 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -811,8 +801,7 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -865,9 +854,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -908,8 +896,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -941,9 +928,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1043,9 +1029,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1077,9 +1062,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1088,8 +1072,7 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1121,9 +1104,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1221,9 +1203,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1255,9 +1236,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1266,8 +1246,7 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1300,9 +1279,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1388,7 +1366,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1405,8 +1383,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1422,8 +1399,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1441,8 +1417,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1488,7 +1463,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1505,8 +1480,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1522,8 +1496,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1541,8 +1514,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1588,7 +1560,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1605,8 +1577,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1622,8 +1593,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1641,8 +1611,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1688,7 +1657,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1705,8 +1674,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1722,8 +1690,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1741,8 +1708,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1788,7 +1754,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1804,8 +1770,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1820,8 +1785,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1838,8 +1802,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1885,7 +1848,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1902,8 +1865,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1919,8 +1881,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1938,8 +1899,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { diff --git a/src/openrct2/paint/track/water/BoatHire.cpp b/src/openrct2/paint/track/water/BoatHire.cpp index b09384f6af..66280de825 100644 --- a/src/openrct2/paint/track/water/BoatHire.cpp +++ b/src/openrct2/paint/track/water/BoatHire.cpp @@ -59,9 +59,7 @@ static void PaintBoatHireTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } @@ -121,8 +119,7 @@ static void PaintBoatHireTrackLeftQuarterTurn1Tile( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topLeft), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } diff --git a/src/openrct2/paint/track/water/DinghySlide.cpp b/src/openrct2/paint/track/water/DinghySlide.cpp index 82c6706414..80cd068177 100644 --- a/src/openrct2/paint/track/water/DinghySlide.cpp +++ b/src/openrct2/paint/track/water/DinghySlide.cpp @@ -245,9 +245,7 @@ static void DinghySlideTrackFlat( PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -330,9 +328,7 @@ static void DinghySlideTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -369,9 +365,7 @@ static void DinghySlideTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -417,9 +411,7 @@ static void DinghySlideTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -456,9 +448,7 @@ static void DinghySlideTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -495,9 +485,7 @@ static void DinghySlideTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -543,9 +531,7 @@ static void DinghySlideTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -684,17 +670,15 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -702,17 +686,15 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -720,8 +702,7 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -789,8 +770,7 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -802,9 +782,8 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -817,9 +796,8 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -831,7 +809,7 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -900,8 +878,7 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -913,9 +890,8 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -928,9 +904,8 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -942,8 +917,7 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -1027,20 +1001,18 @@ static void DinghySlideTrackRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/water/DinghySlideCovered.cpp b/src/openrct2/paint/track/water/DinghySlideCovered.cpp index b4f6000350..7aab555130 100644 --- a/src/openrct2/paint/track/water/DinghySlideCovered.cpp +++ b/src/openrct2/paint/track/water/DinghySlideCovered.cpp @@ -198,9 +198,7 @@ static void DinghySlideTrackCoveredFlat( PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -237,9 +235,7 @@ static void DinghySlideTrackCovered25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -276,9 +272,7 @@ static void DinghySlideTrackCovered60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -315,9 +309,7 @@ static void DinghySlideTrackCoveredFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -354,9 +346,7 @@ static void DinghySlideTrackCovered25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -393,9 +383,7 @@ static void DinghySlideTrackCovered60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -432,9 +420,7 @@ static void DinghySlideTrackCovered25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -574,17 +560,15 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -592,17 +576,15 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -610,8 +592,7 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -673,8 +654,7 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -686,9 +666,8 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -701,9 +680,8 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -715,7 +693,7 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -784,8 +762,7 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -797,9 +774,8 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -812,9 +788,8 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -826,8 +801,7 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -911,20 +885,18 @@ static void DinghySlideTrackCoveredRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/water/LogFlume.cpp b/src/openrct2/paint/track/water/LogFlume.cpp index dd63ff8745..6cca35bf6d 100644 --- a/src/openrct2/paint/track/water/LogFlume.cpp +++ b/src/openrct2/paint/track/water/LogFlume.cpp @@ -465,8 +465,7 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -478,9 +477,8 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -493,9 +491,8 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -507,7 +504,7 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -576,8 +573,7 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -589,9 +585,8 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -604,9 +599,8 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -618,8 +612,7 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -707,23 +700,21 @@ static void PaintLogFlumeTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 3: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -797,16 +788,14 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -814,8 +803,7 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } diff --git a/src/openrct2/paint/track/water/SplashBoats.cpp b/src/openrct2/paint/track/water/SplashBoats.cpp index 342c93d649..762deed062 100644 --- a/src/openrct2/paint/track/water/SplashBoats.cpp +++ b/src/openrct2/paint/track/water/SplashBoats.cpp @@ -801,17 +801,15 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top, - PaintSegment::left, PaintSegment::bottomLeft), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top, + PaintSegment::left, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -819,26 +817,23 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::centre, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::centre, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::left), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -887,17 +882,15 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -905,26 +898,23 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -1010,9 +1000,8 @@ static void PaintSplashBoatsTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1028,9 +1017,8 @@ static void PaintSplashBoatsTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1120,9 +1108,8 @@ static void PaintSplashBoatsTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1138,9 +1125,8 @@ static void PaintSplashBoatsTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/water/SubmarineRide.cpp b/src/openrct2/paint/track/water/SubmarineRide.cpp index 93fe50029f..4a397a3d56 100644 --- a/src/openrct2/paint/track/water/SubmarineRide.cpp +++ b/src/openrct2/paint/track/water/SubmarineRide.cpp @@ -72,9 +72,7 @@ static void SubmarineRidePaintTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } @@ -97,16 +95,14 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -115,7 +111,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -151,7 +147,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } diff --git a/src/openrct2/ride/TrackData.cpp b/src/openrct2/ride/TrackData.cpp index 17d240e443..4342a0eb4e 100644 --- a/src/openrct2/ride/TrackData.cpp +++ b/src/openrct2/ride/TrackData.cpp @@ -185,9 +185,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -196,9 +196,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1100, .woodenSupports = { WoodenSupportSubType::null }, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -207,18 +207,16 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftQuarterTurn5TilesSeq3 = { .clearance = { -32, -32, 0, 0, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -228,9 +226,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::null }, .extraSupportRotation = -1, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -240,7 +238,7 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner0 }, .extraSupportRotation = -1, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight)), + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kLeftQuarterTurn5TilesSeq6 = { @@ -251,9 +249,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -319,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -341,9 +339,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -473,9 +471,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -495,9 +493,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -518,9 +516,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, true }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -542,9 +540,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, true }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -565,9 +563,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -801,9 +799,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -815,7 +813,7 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftQuarterTurn3TilesSeq2 = { .clearance = { -32, 0, 0, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, - .blockedSegments = blockedSegmentsAllTypes(EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft)), + .blockedSegments = blockedSegmentsAllTypes({ PS::left, PS::centre, PS::topLeft, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftQuarterTurn3TilesSeq3 = { @@ -826,9 +824,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -870,9 +868,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -884,7 +882,7 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftBankedQuarterTurn3TilesSeq2 = { .clearance = { -32, 0, 0, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, - .blockedSegments = blockedSegmentsAllTypes(EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft)), + .blockedSegments = blockedSegmentsAllTypes({ PS::left, PS::centre, PS::topLeft, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn3TilesSeq3 = { @@ -895,9 +893,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -939,9 +937,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -954,9 +952,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -968,9 +966,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -1074,9 +1072,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -1095,9 +1093,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1105,9 +1103,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 16, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1117,9 +1115,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1605,8 +1603,8 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft, PS::left), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft, PS::left }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq0.clearance, 0, false), @@ -1634,10 +1632,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - EnumsToFlags( - PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottom, PS::bottomRight), // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottom, PS::bottomRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq2.clearance, 0, false), }; @@ -1646,11 +1643,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, 0, 16, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight, PS::bottom, PS::top), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight, PS::bottom, PS::top }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq3.clearance, 0, false), }; @@ -1669,10 +1664,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner0 }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - EnumsToFlags( - PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight, PS::top, PS::topRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight, PS::top, PS::topRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq5.clearance, 0, false), }; @@ -1685,8 +1679,8 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, false, kCoordsZStep }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft, PS::left), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft, PS::left }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq6.clearance, 0, false), @@ -1909,9 +1903,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterHelixLargeUpSeq0.clearance, 0, false), .tunnels = kLeftQuarterBankedHelixLargeUpSeq0.tunnels, @@ -1964,9 +1958,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, false, kCoordsZStep }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterHelixLargeUpSeq6.clearance, 0, false), .tunnels = kLeftQuarterBankedHelixLargeUpSeq6.tunnels, @@ -2387,9 +2381,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2398,9 +2392,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2409,9 +2403,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2420,9 +2414,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2431,9 +2425,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::bottomCorner }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2550,9 +2544,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2561,9 +2555,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2572,9 +2566,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2583,9 +2577,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2593,11 +2587,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 0, 0, { 0b0001, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags( - PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2710,9 +2702,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2721,9 +2713,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2732,18 +2724,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2751,9 +2743,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 16, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2762,9 +2754,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2773,18 +2765,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25Seq3 = { .clearance = { -32, 32, 0, 16, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2792,9 +2784,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 64, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2803,9 +2795,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2814,18 +2806,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60Seq3 = { .clearance = { -32, 32, 0, 64, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2833,9 +2825,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2844,9 +2836,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2855,18 +2847,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2874,9 +2866,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 32, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2885,9 +2877,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2896,18 +2888,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToUp60Seq3 = { .clearance = { -32, 32, 0, 32, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2915,9 +2907,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 32, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2926,9 +2918,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2937,18 +2929,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToUp25Seq3 = { .clearance = { -32, 32, 0, 32, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2956,9 +2948,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2967,9 +2959,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2978,18 +2970,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToFlatSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3147,9 +3139,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 24, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3158,9 +3150,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3169,18 +3161,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60Seq3 = { .clearance = { -32, 32, 0, 24, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3188,9 +3180,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 24, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3199,9 +3191,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3210,18 +3202,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatSeq3 = { .clearance = { -32, 32, 0, 24, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3279,9 +3271,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3290,9 +3282,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3301,18 +3293,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToLeftBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3320,9 +3312,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3331,9 +3323,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3342,18 +3334,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToRightBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3361,9 +3353,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3372,9 +3364,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3383,18 +3375,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3402,9 +3394,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3413,9 +3405,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3424,18 +3416,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3443,9 +3435,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3454,9 +3446,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3465,18 +3457,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3484,9 +3476,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3495,9 +3487,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3506,18 +3498,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3525,9 +3517,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3536,9 +3528,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3547,18 +3539,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToLeftBankSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3566,9 +3558,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3577,9 +3569,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3588,27 +3580,27 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToRightBankSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToDown25Seq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3617,9 +3609,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3628,9 +3620,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3638,18 +3630,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToDown25Seq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3658,9 +3650,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3669,9 +3661,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3679,18 +3671,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagDown25ToLeftBankSeq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3699,9 +3691,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3710,9 +3702,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3720,18 +3712,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagDown25ToRightBankSeq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3740,9 +3732,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3751,9 +3743,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3761,9 +3753,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3771,9 +3763,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3782,9 +3774,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3793,18 +3785,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3812,9 +3804,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3823,9 +3815,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3834,18 +3826,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3874,9 +3866,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3885,9 +3877,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3898,9 +3890,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3982,9 +3974,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4002,9 +3994,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 16, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -4014,9 +4006,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4117,9 +4109,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4127,9 +4119,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -16, 16, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4139,9 +4131,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4237,9 +4229,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4248,9 +4240,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4260,9 +4252,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4271,9 +4263,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4282,9 +4274,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4294,9 +4286,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4315,9 +4307,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4347,9 +4339,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4630,9 +4622,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4645,9 +4637,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -4657,9 +4649,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4753,9 +4745,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4763,9 +4755,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 16, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -4774,18 +4766,16 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn5TileUp25Seq3 = { .clearance = { -32, -32, 24, 16, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -4793,9 +4783,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -64, 48, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -4803,7 +4793,7 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 32, 16, { 0b0111, 0b0100 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight)), + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn5TileUp25Seq6 = { @@ -4812,9 +4802,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4981,9 +4971,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5001,9 +4991,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5022,9 +5012,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5044,9 +5034,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5065,9 +5055,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5085,9 +5075,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5106,9 +5096,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5128,9 +5118,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5149,9 +5139,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5169,9 +5159,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5190,9 +5180,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5212,9 +5202,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5232,9 +5222,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1111, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5258,9 +5248,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1111, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::centre, PS::topLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::centre, PS::topLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -5357,9 +5347,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5368,9 +5358,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5379,9 +5369,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5390,18 +5380,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthToDiagUp25Seq4 = { .clearance = { -64, -32, 32, 24, { 0b0001, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 50d0db1a9d..b84c077c2c 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1873,29 +1873,23 @@ void TrackPaintUtilOnridePhotoPaint( } } -static constexpr uint16_t RightVerticalLoopSegments[] = { - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - 0, - 0, - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), +static constexpr PaintSegments RightVerticalLoopSegments[] = { + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + {}, + {}, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, }; void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence) @@ -1917,9 +1911,8 @@ void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction dire PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); } diff --git a/src/openrct2/ride/ted/TED.Corkscrew.h b/src/openrct2/ride/ted/TED.Corkscrew.h index eba64d3b71..0eeedd3393 100644 --- a/src/openrct2/ride/ted/TED.Corkscrew.h +++ b/src/openrct2/ride/ted/TED.Corkscrew.h @@ -22,9 +22,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -45,9 +45,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -72,9 +72,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -171,9 +171,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -193,9 +193,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -204,9 +204,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -229,9 +229,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -239,9 +239,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 8, 32, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -249,9 +249,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 24, { 0b0111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -270,9 +270,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0001, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -282,9 +282,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.DiveLoop.h b/src/openrct2/ride/ted/TED.DiveLoop.h index dcb8c08b31..a25145bd0f 100644 --- a/src/openrct2/ride/ted/TED.DiveLoop.h +++ b/src/openrct2/ride/ted/TED.DiveLoop.h @@ -53,36 +53,36 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq1 = { .clearance = { 0, 32, 0, 88, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq2 = { .clearance = { -32, 0, 0, 88, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq3 = { .clearance = { -32, 32, 32, 80, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq4 = { @@ -90,9 +90,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq5 = { @@ -101,9 +101,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kRightEighthDiveLoopUpToOrthogonalSeq0 = { diff --git a/src/openrct2/ride/ted/TED.HalfHelix.h b/src/openrct2/ride/ted/TED.HalfHelix.h index e31c9cc717..a6e1c73d1f 100644 --- a/src/openrct2/ride/ted/TED.HalfHelix.h +++ b/src/openrct2/ride/ted/TED.HalfHelix.h @@ -23,9 +23,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -44,9 +44,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 4, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -57,9 +57,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -70,9 +70,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -91,9 +91,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -96, 8, 4, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -105,9 +105,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -2, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -307,9 +307,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -317,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 0, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -328,9 +328,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // wide } }, }; @@ -338,11 +338,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, 0, 0, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -350,9 +348,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -64, 0, 4, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -361,9 +359,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -374,9 +372,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -387,9 +385,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -397,9 +395,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -96, 8, 0, { 0b0100, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b0110, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::topLeft, PS::topRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::topLeft, PS::topRight }, // wide } }, }; @@ -408,9 +406,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -418,11 +416,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -128, 8, 0, { 0b1110, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags( - PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -430,9 +426,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -128, 8, 4, { 0b0100, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b0110, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::topLeft, PS::topRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::topLeft, PS::topRight }, // wide } }, }; @@ -441,9 +437,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -455,9 +451,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -2, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.LongBase.h b/src/openrct2/ride/ted/TED.LongBase.h index 22f52cf3ae..ad5d21c0ba 100644 --- a/src/openrct2/ride/ted/TED.LongBase.h +++ b/src/openrct2/ride/ted/TED.LongBase.h @@ -164,90 +164,90 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq1 = { .clearance = { 0, 32, 0, 16, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq2 = { .clearance = { -32, 0, 0, 16, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq3 = { .clearance = { -32, 32, 0, 32, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq4 = { .clearance = { -32, 64, 8, 40, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq5 = { .clearance = { -64, 32, 8, 40, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq6 = { .clearance = { -64, 64, 8, 64, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq7 = { .clearance = { -64, 96, 40, 88, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq8 = { .clearance = { -96, 64, 40, 88, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq9 = { .clearance = { -96, 96, 40, 104, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq0 = { @@ -255,90 +255,90 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq1 = { .clearance = { 0, 32, 0, 72, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq2 = { .clearance = { -32, 0, 0, 72, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq3 = { .clearance = { -32, 32, 0, 80, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq4 = { .clearance = { -32, 64, 56, 32, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq5 = { .clearance = { -64, 32, 56, 32, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq6 = { .clearance = { -64, 64, 56, 8, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq7 = { .clearance = { -64, 96, 80, 8, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq8 = { .clearance = { -96, 64, 80, 8, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq9 = { .clearance = { -96, 96, 80, 8, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToDown60LongBaseSeq0 = { diff --git a/src/openrct2/ride/ted/TED.Loop.h b/src/openrct2/ride/ted/TED.Loop.h index 5dfd813d7a..1b96891ae4 100644 --- a/src/openrct2/ride/ted/TED.Loop.h +++ b/src/openrct2/ride/ted/TED.Loop.h @@ -60,10 +60,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags( - PS::top, PS::left, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, + PS::bottomRight }, // inverted kSegmentsUnimplemented, // wide } }, }; @@ -72,9 +71,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 16, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsAll, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsAll, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -82,18 +81,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftVerticalLoopSeq3 = { .clearance = { -32, 0, 120, 16, { 0b0110, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -118,9 +117,9 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftVerticalLoopSeq6 = { .clearance = { 0, -32, 120, 16, { 0b1001, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -128,9 +127,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 32, -32, 32, 96, { 0b1000, 0 }, {} }, .allowedWallEdges = 0b1100, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -138,9 +137,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 16, 16, { 0b1111, 0b0011 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsAll, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsAll, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -150,10 +149,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, + PS::bottomRight }, // inverted kSegmentsUnimplemented, // wide } }, }; @@ -224,9 +222,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -245,9 +243,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -255,9 +253,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 120, 16, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -265,9 +263,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, -32, 16, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -275,9 +273,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -120, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -298,9 +296,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -309,9 +307,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -319,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -329,9 +327,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -339,9 +337,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -349,9 +347,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -359,9 +357,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -371,9 +369,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -510,9 +508,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -520,9 +518,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 48, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -530,9 +528,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 56, 120, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -540,9 +538,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 56, 120, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -551,9 +549,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -658,9 +656,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -668,9 +666,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -678,9 +676,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -688,9 +686,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -698,9 +696,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -708,9 +706,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -720,9 +718,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -776,9 +774,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -786,9 +784,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -184, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -796,9 +794,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, -128, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -807,9 +805,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -818,9 +816,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -829,9 +827,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -841,9 +839,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -900,9 +898,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -910,9 +908,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -920,9 +918,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -930,9 +928,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -940,9 +938,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -950,9 +948,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -962,9 +960,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1018,9 +1016,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1028,9 +1026,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -216, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1038,9 +1036,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, -160, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1048,9 +1046,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, -216, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1058,9 +1056,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, -248, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1068,9 +1066,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 32, -32, -264, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1080,9 +1078,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1136,9 +1134,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1156,11 +1154,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags( - PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, - PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1169,9 +1165,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1179,9 +1175,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, -32, 32, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1189,9 +1185,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -120, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1211,9 +1207,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1229,9 +1225,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1250,9 +1246,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1011, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1261,9 +1257,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.SBend.h b/src/openrct2/ride/ted/TED.SBend.h index 9692289e8a..dc38465ca1 100644 --- a/src/openrct2/ride/ted/TED.SBend.h +++ b/src/openrct2/ride/ted/TED.SBend.h @@ -34,9 +34,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -45,7 +45,7 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kSBendLeftSeq2 = { @@ -53,7 +53,7 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1100, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight)), + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kSBendLeftSeq3 = { @@ -62,9 +62,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.ZeroG.h b/src/openrct2/ride/ted/TED.ZeroG.h index 802c691225..225b78837e 100644 --- a/src/openrct2/ride/ted/TED.ZeroG.h +++ b/src/openrct2/ride/ted/TED.ZeroG.h @@ -78,9 +78,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -89,9 +89,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -102,9 +102,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -186,9 +186,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -197,9 +197,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -208,9 +208,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -221,9 +221,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TrackElementDescriptor.h b/src/openrct2/ride/ted/TrackElementDescriptor.h index acf3faf5f7..b131b66462 100644 --- a/src/openrct2/ride/ted/TrackElementDescriptor.h +++ b/src/openrct2/ride/ted/TrackElementDescriptor.h @@ -218,11 +218,11 @@ namespace OpenRCT2::TrackMetadata int8_t height = 0; }; - using BlockedSegmentsPerType = std::array; + using BlockedSegmentsPerType = std::array; constexpr BlockedSegmentsPerType kFlatStraightBlockedSegments = { { - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), // narrow - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), // inverted - kSegmentsAll, // wide + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, // narrow + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, // inverted + kSegmentsAll, // wide } }; static constexpr int16_t kDoNotSetGeneralSupportHeight = std::numeric_limits::min();