forked from rosebudai/OpenRCT2-Web
Create FlagHolder for PaintSegments (#27131)
This commit is contained in:
1 parent
c5550ef4ae
commit
806386cd20
83 files changed
+8518
-13050
No files matched your search
@@ -68,7 +68,7 @@ struct FlagHolder
|
||||
}
|
||||
|
||||
template<typename... TTypes>
|
||||
[[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<typename... TTypes>
|
||||
[[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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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<uint16_t>((segments.holder & 0xFF00) | temp));
|
||||
}
|
||||
|
||||
bool PaintShouldShowHeightMarkers(const PaintSession& session, const ViewportFlag viewportFlag)
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Segment.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
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);
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../core/EnumUtils.hpp"
|
||||
#include "../../core/FlagHolder.hpp"
|
||||
#include "../../core/Numerics.hpp"
|
||||
|
||||
#include <array>
|
||||
@@ -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<uint16_t, PaintSegment>;
|
||||
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<uint16_t>((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<uint16_t>((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<uint16_t, kBlockedSegmentsTypeCount> blockedSegmentsAllTypes(const uint16_t segments)
|
||||
constexpr std::array<PaintSegments, kBlockedSegmentsTypeCount> blockedSegmentsAllTypes(const PaintSegments segments)
|
||||
{
|
||||
return { segments, segments, segments };
|
||||
}
|
||||
|
||||
constexpr std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegmentsRotate(
|
||||
std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegments, const uint8_t rotation)
|
||||
constexpr std::array<PaintSegments, kBlockedSegmentsTypeCount> blockedSegmentsRotate(
|
||||
std::array<PaintSegments, kBlockedSegmentsTypeCount> blockedSegments, const uint8_t rotation)
|
||||
{
|
||||
for (auto& segments : blockedSegments)
|
||||
{
|
||||
@@ -75,8 +79,8 @@ namespace OpenRCT2
|
||||
return blockedSegments;
|
||||
}
|
||||
|
||||
constexpr std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegmentsFlipXAxis(
|
||||
std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegments)
|
||||
constexpr std::array<PaintSegments, kBlockedSegmentsTypeCount> blockedSegmentsFlipXAxis(
|
||||
std::array<PaintSegments, kBlockedSegmentsTypeCount> blockedSegments)
|
||||
{
|
||||
for (auto& segments : blockedSegments)
|
||||
{
|
||||
|
||||
@@ -11,15 +11,13 @@
|
||||
|
||||
#include "../tile_element/Segment.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
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
|
||||
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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<TrackElemType::bankedRightQuarterTurn5Tiles>(
|
||||
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<TrackElemType::rightBankedQuarterTurn3Tiles>(
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -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);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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<TrackElemType::leftBankedQuarterTurn3Tiles>(
|
||||
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<TrackElemType::bankedRightQuarterTurn5Tiles>(
|
||||
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);
|
||||
|
||||
@@ -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<TrackElemType::rightQuarterTurn3Tiles>(
|
||||
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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1935,10 +1935,10 @@ static void TrackLeftQuarterTurn3Tiles(
|
||||
WoodenSupportTransitionType::none);
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence);
|
||||
static constexpr std::array<int32_t, 4> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 4> 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<int32_t, 7> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 7> 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<int32_t, 4> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 4> 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<int32_t, 4> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 4> 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<int32_t, 7> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 7> 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<int32_t, 7> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 7> 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<int32_t, 4> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 4> 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<int32_t, 4> blockedSegments = {
|
||||
static constexpr std::array<PaintSegments, 4> 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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
+532
-542
File diff suppressed because it is too large.
Load diff
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
} },
|
||||
};
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
} },
|
||||
};
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
+189
-193
@@ -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
|
||||
} },
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
} },
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
} },
|
||||
};
|
||||
|
||||
|
||||
@@ -218,11 +218,11 @@ namespace OpenRCT2::TrackMetadata
|
||||
int8_t height = 0;
|
||||
};
|
||||
|
||||
using BlockedSegmentsPerType = std::array<uint16_t, kBlockedSegmentsTypeCount>;
|
||||
using BlockedSegmentsPerType = std::array<PaintSegments, kBlockedSegmentsTypeCount>;
|
||||
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<int16_t>::min();
|
||||
|
||||
Reference in new issue
Block a user