forked from rosebudai/OpenRCT2-Web
Merge pull request #22109 from Gymnasiast/refactor/tunnels
Refactor tunnels
This commit is contained in:
66 files changed
+3849
-3807
No files matched your search
@@ -369,6 +369,7 @@
|
||||
<ClInclude Include="paint\tile_element\Paint.Surface.h" />
|
||||
<ClInclude Include="paint\tile_element\Paint.TileElement.h" />
|
||||
<ClInclude Include="paint\tile_element\Segment.h" />
|
||||
<ClInclude Include="paint\tile_element\Paint.Tunnel.h" />
|
||||
<ClInclude Include="paint\track\Segment.h" />
|
||||
<ClInclude Include="paint\track\Support.h" />
|
||||
<ClInclude Include="paint\VirtualFloor.h" />
|
||||
@@ -887,6 +888,7 @@
|
||||
<ClCompile Include="paint\tile_element\Paint.Surface.cpp" />
|
||||
<ClCompile Include="paint\tile_element\Paint.TileElement.cpp" />
|
||||
<ClCompile Include="paint\tile_element\Paint.Wall.cpp" />
|
||||
<ClCompile Include="paint\tile_element\Paint.Tunnel.cpp" />
|
||||
<ClCompile Include="paint\VirtualFloor.cpp" />
|
||||
<ClCompile Include="ParkImporter.cpp" />
|
||||
<ClCompile Include="park\Legacy.cpp" />
|
||||
@@ -1088,4 +1090,4 @@
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "../world/Location.hpp"
|
||||
#include "../world/Map.h"
|
||||
#include "Boundbox.h"
|
||||
#include "tile_element/Paint.Tunnel.h"
|
||||
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
@@ -117,18 +118,10 @@ struct SupportHeight
|
||||
uint8_t pad;
|
||||
};
|
||||
|
||||
struct TunnelEntry
|
||||
{
|
||||
uint8_t height;
|
||||
uint8_t type;
|
||||
};
|
||||
|
||||
// The maximum size must be kMaximumMapSizeTechnical multiplied by 2 because
|
||||
// the quadrant index is based on the x and y components combined.
|
||||
static constexpr int32_t MaxPaintQuadrants = kMaximumMapSizeTechnical * 2;
|
||||
|
||||
constexpr uint8_t kTunnelMaxCount = 65;
|
||||
|
||||
/**
|
||||
* A pool of PaintEntry instances that can be rented out.
|
||||
* The internal implementation uses an unrolled linked list so that each
|
||||
@@ -332,8 +325,6 @@ inline PaintStruct* PaintAddImageAsParentRotated(
|
||||
return PaintAddImageAsParentRotated(session, direction, imageId, offset, { offset, boundBoxSize });
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, uint8_t type);
|
||||
|
||||
bool PaintAttachToPreviousAttach(PaintSession& session, const ImageId imageId, int32_t x, int32_t y);
|
||||
bool PaintAttachToPreviousPS(PaintSession& session, const ImageId image_id, int32_t x, int32_t y);
|
||||
void PaintFloatingMoneyEffect(
|
||||
|
||||
@@ -39,15 +39,3 @@ PaintStruct* PaintAddImageAsChildRotated(
|
||||
|
||||
return PaintAddImageAsChild(session, image_id, offset, boundBox);
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, uint8_t type)
|
||||
{
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, type);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, type);
|
||||
}
|
||||
}
|
||||
@@ -190,7 +190,7 @@ static void PaintRideEntranceExit(PaintSession& session, uint8_t direction, int3
|
||||
{ { (direction & 1) ? 28 : 2, (direction & 1) ? 2 : 28, height }, boundBoxLength });
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
if (!entranceEl.IsGhost())
|
||||
PaintRideEntranceExitScrollingText(session, entranceEl, *stationObj, direction, height);
|
||||
|
||||
@@ -640,17 +640,17 @@ static void Sub6A3F61(
|
||||
if (sloped && direction == EDGE_NE)
|
||||
{
|
||||
// Path going down into the tunnel
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
else if (connectedEdges & EDGE_NE)
|
||||
{
|
||||
// Flat path with edge to the right (north-east)
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_11);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::Path11);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Path going up, or flat and not connected to the right
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -663,17 +663,17 @@ static void Sub6A3F61(
|
||||
if (sloped && direction == EDGE_SE)
|
||||
{
|
||||
// Path going down into the tunnel
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
else if (connectedEdges & EDGE_NW)
|
||||
{
|
||||
// Flat path with edge to the left (north-west)
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_11);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::Path11);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Path going up, or flat and not connected to the left
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,63 +154,42 @@ static constexpr uint8_t Byte97B55D[] = {
|
||||
1, 5, 1, 3, 2, 3, 1, 5, 0,
|
||||
};
|
||||
|
||||
static constexpr uint8_t _tunnelHeights[TUNNEL_TYPE_COUNT][2] = {
|
||||
{ 2, 2 },
|
||||
{ 3, 3 },
|
||||
{ 3, 5 },
|
||||
{ 3, 3 },
|
||||
{ 4, 4 },
|
||||
{ 4, 6 },
|
||||
{ 2, 2 },
|
||||
{ 3, 3 },
|
||||
{ 3, 5 },
|
||||
{ 3, 3 },
|
||||
{ 2, 3 },
|
||||
{ 2, 3 },
|
||||
{ 2, 3 },
|
||||
{ 3, 4 },
|
||||
{ 2, 3 },
|
||||
{ 3, 4 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
{ 2, 2 },
|
||||
struct TunnelDescriptor
|
||||
{
|
||||
uint8_t height;
|
||||
uint8_t boundBoxLength;
|
||||
int16_t boundBoxZOffset;
|
||||
TunnelType lowClearanceAlternative;
|
||||
uint8_t imageOffset;
|
||||
};
|
||||
|
||||
static constexpr int16_t _boundBoxZOffsets[TUNNEL_TYPE_COUNT] = {
|
||||
0,
|
||||
0,
|
||||
-32,
|
||||
0,
|
||||
0,
|
||||
-48,
|
||||
0,
|
||||
0,
|
||||
-32,
|
||||
0,
|
||||
-16,
|
||||
-16,
|
||||
-16,
|
||||
-16,
|
||||
-16,
|
||||
-16,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
static constexpr TunnelDescriptor kTunnels[] = {
|
||||
{ 2, 2, 0, TunnelType::StandardFlat, 36 }, // TunnelType::StandardFlat
|
||||
{ 3, 3, 0, TunnelType::StandardFlat, 40 }, // TunnelType::StandardSlopeStart
|
||||
{ 3, 5, -32, TunnelType::StandardFlat, 44 }, // TunnelType::StandardSlopeEnd
|
||||
{ 3, 3, 0, TunnelType::InvertedFlat, 48 }, // TunnelType::InvertedFlat
|
||||
{ 4, 4, 0, TunnelType::InvertedFlat, 52 }, // TunnelType::InvertedSlopeStart
|
||||
{ 4, 6, -48, TunnelType::InvertedFlat, 56 }, // TunnelType::InvertedSlopeEnd
|
||||
{ 2, 2, 0, TunnelType::SquareFlat, 60 }, // TunnelType::SquareFlat
|
||||
{ 3, 3, 0, TunnelType::SquareFlat, 64 }, // TunnelType::SquareSlopeStart
|
||||
{ 3, 5, -32, TunnelType::SquareFlat, 68 }, // TunnelType::SquareSlopeEnd
|
||||
{ 3, 3, 0, TunnelType::SquareFlat, 72 }, // TunnelType::InvertedSquare
|
||||
{ 2, 3, -16, TunnelType::PathAndMiniGolf, 76 }, // TunnelType::PathAndMiniGolf
|
||||
{ 2, 3, -16, TunnelType::Path11, 80 }, // TunnelType::Path11
|
||||
{ 2, 3, -16, TunnelType::_12, 36 }, // TunnelType::_12
|
||||
{ 3, 4, -16, TunnelType::_13, 48 }, // TunnelType::_13
|
||||
{ 2, 3, -16, TunnelType::_14, 60 }, // TunnelType::_14
|
||||
{ 3, 4, -16, TunnelType::_14, 72 }, // TunnelType::_15
|
||||
{ 2, 2, 0, TunnelType::Doors0, 76 }, // TunnelType::Doors0
|
||||
{ 2, 2, 0, TunnelType::Doors1, 80 }, // TunnelType::Doors1
|
||||
{ 2, 2, 0, TunnelType::Doors2, 84 }, // TunnelType::Doors2
|
||||
{ 2, 2, 0, TunnelType::Doors3, 88 }, // TunnelType::Doors3
|
||||
{ 2, 2, 0, TunnelType::Doors4, 92 }, // TunnelType::Doors4
|
||||
{ 2, 2, 0, TunnelType::Doors5, 96 }, // TunnelType::Doors5
|
||||
{ 2, 2, 0, TunnelType::Doors6, 100 }, // TunnelType::Doors6
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
// tunnel offset
|
||||
static constexpr uint8_t Byte97B5B0[TUNNEL_TYPE_COUNT] = {
|
||||
0, 0, 0, 3, 3, 3, 6, 6, 6, 6, 10, 11, 12, 13, 14, 14, 16, 17, 18, 19, 20, 21, 22,
|
||||
};
|
||||
|
||||
static constexpr uint8_t Byte97B740[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 1, 4, 0,
|
||||
@@ -360,25 +339,20 @@ static ImageId GetEdgeImage(const TerrainEdgeObject* edgeObject, uint8_t type)
|
||||
return result;
|
||||
}
|
||||
|
||||
static ImageId GetTunnelImage(const TerrainEdgeObject* edgeObject, uint8_t type, edge_t edge)
|
||||
static ImageId GetTunnelImage(const TerrainEdgeObject* edgeObject, TunnelType type, edge_t edge)
|
||||
{
|
||||
static constexpr uint32_t offsets[TUNNEL_TYPE_COUNT] = { 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80,
|
||||
36, 48, 60, 72, 76, 80, 84, 88, 92, 96, 100 };
|
||||
|
||||
bool hasDoors = false;
|
||||
if (edgeObject != nullptr)
|
||||
{
|
||||
hasDoors = edgeObject->HasDoors && !edgeObject->UsesFallbackImages();
|
||||
}
|
||||
|
||||
if (!hasDoors && type >= REGULAR_TUNNEL_TYPE_COUNT && type < std::size(offsets))
|
||||
type = TUNNEL_0;
|
||||
if (!hasDoors && EnumValue(type) >= kRegularTunnelTypeCount)
|
||||
type = TunnelType::StandardFlat;
|
||||
|
||||
ImageId result = GetEdgeImageWithOffset(edgeObject, kTunnels[EnumValue(type)].imageOffset)
|
||||
.WithIndexOffset(edge == EDGE_BOTTOMRIGHT ? 2 : 0);
|
||||
|
||||
ImageId result;
|
||||
if (type < std::size(offsets))
|
||||
{
|
||||
result = GetEdgeImageWithOffset(edgeObject, offsets[type]).WithIndexOffset(edge == EDGE_BOTTOMRIGHT ? 2 : 0);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -670,19 +644,22 @@ static void ViewportSurfaceDrawTileSideBottom(
|
||||
}
|
||||
|
||||
// Tunnels
|
||||
uint8_t tunnelType = tunnelArray[tunnelIndex].type;
|
||||
uint8_t tunnelHeight = _tunnelHeights[tunnelType][0];
|
||||
auto tunnelType = tunnelArray[tunnelIndex].type;
|
||||
auto td = kTunnels[EnumValue(tunnelType)];
|
||||
uint8_t tunnelHeight = td.height;
|
||||
int16_t zOffset = curHeight;
|
||||
|
||||
// When dealing with flat land but a sloped track, we fall back to the non-sloped variant.
|
||||
if ((zOffset + tunnelHeight) > neighbourCornerHeight1 || (zOffset + tunnelHeight) > cornerHeight1)
|
||||
{
|
||||
tunnelType = Byte97B5B0[tunnelType];
|
||||
tunnelType = td.lowClearanceAlternative;
|
||||
td = kTunnels[EnumValue(tunnelType)];
|
||||
}
|
||||
|
||||
zOffset *= 16;
|
||||
|
||||
int16_t boundBoxOffsetZ = zOffset + _boundBoxZOffsets[tunnelType];
|
||||
int8_t boundBoxLength = _tunnelHeights[tunnelType][1] * 16;
|
||||
int16_t boundBoxOffsetZ = zOffset + td.boundBoxZOffset;
|
||||
int8_t boundBoxLength = td.boundBoxLength * 16;
|
||||
if (boundBoxOffsetZ < 16)
|
||||
{
|
||||
boundBoxOffsetZ += 16;
|
||||
@@ -691,12 +668,11 @@ static void ViewportSurfaceDrawTileSideBottom(
|
||||
|
||||
auto imageId = GetTunnelImage(edgeObject, tunnelType, edge);
|
||||
PaintAddImageAsParent(
|
||||
session, imageId, { offset, zOffset },
|
||||
{ { 0, 0, boundBoxOffsetZ }, { tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1 } });
|
||||
session, imageId, { offset, zOffset }, { { 0, 0, boundBoxOffsetZ }, { tunnelBounds, boundBoxLength - 1 } });
|
||||
|
||||
boundBoxOffsetZ = curHeight * COORDS_Z_PER_TINY_Z;
|
||||
boundBoxLength = _tunnelHeights[tunnelType][1] * 16;
|
||||
boundBoxOffsetZ += _boundBoxZOffsets[tunnelType];
|
||||
boundBoxLength = td.boundBoxLength * 16;
|
||||
boundBoxOffsetZ += td.boundBoxZOffset;
|
||||
if (boundBoxOffsetZ == 0)
|
||||
{
|
||||
boundBoxOffsetZ += 16;
|
||||
@@ -706,10 +682,9 @@ static void ViewportSurfaceDrawTileSideBottom(
|
||||
imageId = GetTunnelImage(edgeObject, tunnelType, edge).WithIndexOffset(1);
|
||||
PaintAddImageAsParent(
|
||||
session, imageId, { offset, curHeight * COORDS_Z_PER_TINY_Z },
|
||||
{ { tunnelTopBoundBoxOffset.x, tunnelTopBoundBoxOffset.y, boundBoxOffsetZ },
|
||||
{ tunnelBounds.x, tunnelBounds.y, boundBoxLength - 1 } });
|
||||
{ { tunnelTopBoundBoxOffset, boundBoxOffsetZ }, { tunnelBounds, boundBoxLength - 1 } });
|
||||
|
||||
curHeight += _tunnelHeights[tunnelType][0];
|
||||
curHeight += td.height;
|
||||
tunnelIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,8 +127,8 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor
|
||||
|
||||
session.LeftTunnelCount = 0;
|
||||
session.RightTunnelCount = 0;
|
||||
session.LeftTunnels[0] = { 0xFF, 0xFF };
|
||||
session.RightTunnels[0] = { 0xFF, 0xFF };
|
||||
session.LeftTunnels[0] = { 0xFF, TunnelType::Null };
|
||||
session.RightTunnels[0] = { 0xFF, TunnelType::Null };
|
||||
session.VerticalTunnelHeight = 0xFF;
|
||||
session.MapPosition.x = coords.x;
|
||||
session.MapPosition.y = coords.y;
|
||||
@@ -334,31 +334,6 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, uint8_t type)
|
||||
{
|
||||
session.LeftTunnels[session.LeftTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.LeftTunnelCount < kTunnelMaxCount - 1)
|
||||
{
|
||||
session.LeftTunnels[session.LeftTunnelCount + 1] = { 0xFF, 0xFF };
|
||||
session.LeftTunnelCount++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, uint8_t type)
|
||||
{
|
||||
session.RightTunnels[session.RightTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.RightTunnelCount < kTunnelMaxCount - 1)
|
||||
{
|
||||
session.RightTunnels[session.RightTunnelCount + 1] = { 0xFF, 0xFF };
|
||||
session.RightTunnelCount++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height)
|
||||
{
|
||||
session.VerticalTunnelHeight = height / 16;
|
||||
}
|
||||
|
||||
void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height)
|
||||
{
|
||||
if (session.Support.height >= height)
|
||||
|
||||
@@ -26,38 +26,6 @@ enum edge_t
|
||||
EDGE_TOPRIGHT = EDGE_NE
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
TUNNEL_0 = 0,
|
||||
TUNNEL_1 = 1,
|
||||
TUNNEL_2 = 2,
|
||||
TUNNEL_INVERTED_3 = 3,
|
||||
TUNNEL_INVERTED_4 = 4,
|
||||
TUNNEL_INVERTED_5 = 5,
|
||||
TUNNEL_SQUARE_FLAT = 6,
|
||||
TUNNEL_SQUARE_7 = 7,
|
||||
TUNNEL_SQUARE_8 = 8,
|
||||
TUNNEL_SQUARE_INVERTED_9 = 9,
|
||||
TUNNEL_PATH_AND_MINI_GOLF = 0x0A,
|
||||
TUNNEL_PATH_11 = 0x0B,
|
||||
TUNNEL_12 = 0x0C,
|
||||
TUNNEL_13 = 0x0D,
|
||||
TUNNEL_14 = 0x0E,
|
||||
TUNNEL_15 = 0x0F,
|
||||
REGULAR_TUNNEL_TYPE_COUNT,
|
||||
|
||||
// Ghost train doors
|
||||
TUNNEL_DOORS_0 = 16,
|
||||
TUNNEL_DOORS_1 = 17,
|
||||
TUNNEL_DOORS_2 = 18,
|
||||
TUNNEL_DOORS_3 = 19,
|
||||
TUNNEL_DOORS_4 = 20,
|
||||
TUNNEL_DOORS_5 = 21,
|
||||
TUNNEL_DOORS_6 = 22,
|
||||
|
||||
TUNNEL_TYPE_COUNT
|
||||
};
|
||||
|
||||
extern const uint16_t segment_offsets[9];
|
||||
|
||||
extern bool gShowSupportSegmentHeights;
|
||||
@@ -66,10 +34,6 @@ extern const CoordsXY BannerBoundBoxes[][2];
|
||||
|
||||
extern const uint8_t PathSlopeToLandSlope[4];
|
||||
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height);
|
||||
|
||||
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);
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
|
||||
#include "Paint.Tunnel.h"
|
||||
|
||||
#include "../Paint.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, TunnelType type)
|
||||
{
|
||||
session.LeftTunnels[session.LeftTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.LeftTunnelCount < kTunnelMaxCount - 1)
|
||||
{
|
||||
session.LeftTunnels[session.LeftTunnelCount + 1] = { 0xFF, TunnelType::Null };
|
||||
session.LeftTunnelCount++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, TunnelType type)
|
||||
{
|
||||
session.RightTunnels[session.RightTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.RightTunnelCount < kTunnelMaxCount - 1)
|
||||
{
|
||||
session.RightTunnels[session.RightTunnelCount + 1] = { 0xFF, TunnelType::Null };
|
||||
session.RightTunnelCount++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height)
|
||||
{
|
||||
session.VerticalTunnelHeight = height / 16;
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, TunnelType type)
|
||||
{
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, type);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, type);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType0,
|
||||
TunnelType tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, tunnelType0);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, tunnelType3);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, tunnelType3);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, tunnelType0);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType0,
|
||||
TunnelType tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, tunnelType0);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, tunnelType3);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, tunnelType3);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, tunnelType0);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, TunnelType tunnelType, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 2 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, TunnelType startTunnel,
|
||||
int8_t endOffset, TunnelType endTunnel)
|
||||
{
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, (direction + 3) % NumOrthogonalDirections, baseHeight, endOffset, endTunnel, startOffset, startTunnel);
|
||||
}
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, TunnelType startTunnel,
|
||||
int8_t endOffset, TunnelType endTunnel)
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, baseHeight + startOffset, startTunnel);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, baseHeight + endOffset, endTunnel);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, baseHeight + startOffset, startTunnel);
|
||||
PaintUtilPushTunnelLeft(session, baseHeight + endOffset, endTunnel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
/*****************************************************************************
|
||||
* Copyright (c) 2014-2024 OpenRCT2 developers
|
||||
*
|
||||
* For a complete list of all authors, please refer to contributors.md
|
||||
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
||||
*
|
||||
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../world/Location.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
struct PaintSession;
|
||||
|
||||
constexpr uint8_t kTunnelMaxCount = 65;
|
||||
|
||||
enum class TunnelType : uint8_t
|
||||
{
|
||||
StandardFlat = 0, // Used on flat track (or the flat part of flat-to-sloped track)
|
||||
StandardSlopeStart = 1, // Used on the lower end of sloped track
|
||||
StandardSlopeEnd = 2, // Used on the upper end of sloped track
|
||||
InvertedFlat = 3, // Used on flat track (or the flat part of flat-to-sloped track)
|
||||
InvertedSlopeStart = 4, // Used on the lower end of sloped track
|
||||
InvertedSlopeEnd = 5, // Used on the upper end of sloped track
|
||||
SquareFlat = 6, // Used on flat track (or the flat part of flat-to-sloped track)
|
||||
SquareSlopeStart = 7, // Used on the lower end of sloped track
|
||||
SquareSlopeEnd = 8, // Used on the upper end of sloped track
|
||||
InvertedSquare = 9,
|
||||
PathAndMiniGolf = 10,
|
||||
Path11 = 11,
|
||||
_12 = 12,
|
||||
_13 = 13,
|
||||
_14 = 14,
|
||||
_15 = 15,
|
||||
|
||||
// Ghost train doors
|
||||
Doors0 = 16,
|
||||
Doors1 = 17,
|
||||
Doors2 = 18,
|
||||
Doors3 = 19,
|
||||
Doors4 = 20,
|
||||
Doors5 = 21,
|
||||
Doors6 = 22,
|
||||
|
||||
Count,
|
||||
|
||||
Null = 255,
|
||||
};
|
||||
constexpr uint8_t kRegularTunnelTypeCount = 16;
|
||||
|
||||
struct TunnelEntry
|
||||
{
|
||||
uint8_t height;
|
||||
TunnelType type;
|
||||
};
|
||||
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, TunnelType type);
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, TunnelType type);
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height);
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, TunnelType type);
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType);
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType0,
|
||||
TunnelType tunnelType3);
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType0,
|
||||
TunnelType tunnelType3);
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, TunnelType tunnelType);
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, TunnelType tunnelType, Direction direction, uint8_t trackSequence);
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, TunnelType startTunnel,
|
||||
int8_t endOffset, TunnelType endTunnel);
|
||||
void TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, TunnelType startTunnel,
|
||||
int8_t endOffset, TunnelType endTunnel);
|
||||
@@ -1367,27 +1367,6 @@ void TrackPaintUtilRightQuarterTurn5TilesPaint3(
|
||||
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
@@ -1635,72 +1614,6 @@ void TrackPaintUtilRightQuarterTurn3TilesPaint4(
|
||||
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, tunnelType0);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, tunnelType3);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, tunnelType3);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, tunnelType0);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, tunnelType0);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, tunnelType3);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, tunnelType3);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, tunnelType0);
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr int8_t left_quarter_turn_3_tiles_sprite_map[] = {
|
||||
2,
|
||||
-1,
|
||||
@@ -1804,30 +1717,6 @@ void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset(
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 2 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, tunnelType);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, tunnelType);
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
const ImageId colourFlags, const uint32_t* sprites)
|
||||
@@ -1855,33 +1744,6 @@ void TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel)
|
||||
{
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, (direction + 3) % 4, baseHeight, endOffset, endTunnel, startOffset, startTunnel);
|
||||
}
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel)
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, baseHeight + startOffset, startTunnel);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, baseHeight + endOffset, endTunnel);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, baseHeight + startOffset, startTunnel);
|
||||
PaintUtilPushTunnelLeft(session, baseHeight + endOffset, endTunnel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction)
|
||||
{
|
||||
int32_t frame = (GetGameState().CurrentTicks >> 2) & 3;
|
||||
|
||||
@@ -448,16 +448,9 @@ void TrackPaintUtilRightQuarterTurn5TilesPaint2(
|
||||
void TrackPaintUtilRightQuarterTurn5TilesPaint3(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
|
||||
const SpriteBb sprites[][5]);
|
||||
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
|
||||
void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence);
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3);
|
||||
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3);
|
||||
void TrackPaintUtilRightQuarterTurn3TilesPaint(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const ImageId colourFlags, const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3],
|
||||
@@ -474,16 +467,13 @@ void TrackPaintUtilRightQuarterTurn3TilesPaint3(
|
||||
void TrackPaintUtilRightQuarterTurn3TilesPaint4(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
|
||||
const SpriteBb sprites[4][3]);
|
||||
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesPaint(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const ImageId colourFlags, const uint32_t sprites[4][3]);
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset);
|
||||
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
|
||||
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence);
|
||||
void TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
const ImageId colourFlags, const uint32_t* sprites);
|
||||
@@ -524,13 +514,6 @@ void TrackPaintUtilDiagTilesPaintExtra(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const uint32_t sprites[4], MetalSupportType supportType);
|
||||
|
||||
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel);
|
||||
void TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel);
|
||||
|
||||
void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence);
|
||||
|
||||
void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction direction, uint16_t height);
|
||||
|
||||
@@ -187,7 +187,7 @@ static void AirPoweredVerticalRCTrackFlat(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -216,7 +216,7 @@ static void AirPoweredVerticalRCTrackStation(
|
||||
|
||||
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -259,7 +259,7 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5(
|
||||
|
||||
TrackPaintUtilRightQuarterTurn5TilesPaint3(session, height, direction, trackSequence, session.TrackColours, imageIds);
|
||||
TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -351,7 +351,7 @@ static void AirPoweredVerticalRCTrackFlatToLeftBank(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -381,7 +381,7 @@ static void AirPoweredVerticalRCTrackFlatToRightBank(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -451,7 +451,7 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5(
|
||||
}
|
||||
|
||||
TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -544,7 +544,7 @@ static void AirPoweredVerticalRCTrackLeftBank(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -574,7 +574,7 @@ static void AirPoweredVerticalRCTrackBrakes(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -694,7 +694,7 @@ static void AirPoweredVerticalRCTrackVerticalSlopeUp(
|
||||
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NeSw, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + supportHeights[trackSequence]);
|
||||
@@ -725,7 +725,7 @@ static void AirPoweredVerticalRCTrackVerticalSlopeUp(
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -976,13 +976,13 @@ static void AirPoweredVerticalRCTrackBooster(
|
||||
{
|
||||
auto imageId = colour.WithIndex(SPR_REVERSE_FREEFALL_RC_FLAT_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 1 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto imageId = colour.WithIndex(SPR_REVERSE_FREEFALL_RC_FLAT_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -1009,7 +1009,7 @@ static void AirPoweredVerticalRCTrackOnridePhoto(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -125,7 +125,7 @@ namespace AlpineRC
|
||||
{ 0, 0, height - 2 }, { { 0, 2, height }, { 32, 28, 2 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -200,11 +200,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -281,11 +281,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -362,11 +362,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -429,7 +429,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -508,10 +508,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -570,7 +570,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -720,10 +720,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -782,7 +782,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -949,7 +949,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2211,7 +2211,7 @@ namespace AlpineRC
|
||||
session, direction & 1 ? MetalSupportType::ForkAlt : kSupportType, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2256,7 +2256,7 @@ namespace AlpineRC
|
||||
session, direction & 1 ? MetalSupportType::ForkAlt : kSupportType, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2317,11 +2317,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2369,11 +2369,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2421,11 +2421,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2473,11 +2473,11 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2545,7 +2545,7 @@ namespace AlpineRC
|
||||
session, direction & 1 ? MetalSupportType::ForkAlt : kSupportType, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -4110,7 +4110,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4192,10 +4192,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4257,7 +4257,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4410,10 +4410,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4472,7 +4472,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4639,7 +4639,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4822,7 +4822,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4870,10 +4870,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4924,7 +4924,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4977,10 +4977,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5047,7 +5047,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5197,10 +5197,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5251,7 +5251,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5401,10 +5401,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5471,7 +5471,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5591,10 +5591,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5645,7 +5645,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5765,10 +5765,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5822,7 +5822,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5904,10 +5904,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5953,10 +5953,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6038,7 +6038,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6091,7 +6091,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6173,10 +6173,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6222,10 +6222,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6307,7 +6307,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6386,7 +6386,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6539,10 +6539,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6588,10 +6588,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6744,7 +6744,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6796,7 +6796,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6954,10 +6954,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7003,10 +7003,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7164,7 +7164,7 @@ namespace AlpineRC
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7230,7 +7230,7 @@ namespace AlpineRC
|
||||
session, direction & 1 ? MetalSupportType::ForkAlt : kSupportType, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -7274,7 +7274,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7322,10 +7322,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7379,7 +7379,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7427,10 +7427,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7481,7 +7481,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7532,10 +7532,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7586,7 +7586,7 @@ namespace AlpineRC
|
||||
session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7637,10 +7637,10 @@ namespace AlpineRC
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
|
||||
@@ -96,7 +96,7 @@ static void BobsleighRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ static void BobsleighRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -216,11 +216,11 @@ static void BobsleighRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -317,11 +317,11 @@ static void BobsleighRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -418,11 +418,11 @@ static void BobsleighRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -498,7 +498,7 @@ static void BobsleighRCTrackLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -694,10 +694,10 @@ static void BobsleighRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -766,7 +766,7 @@ static void BobsleighRCTrackFlatToLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -815,7 +815,7 @@ static void BobsleighRCTrackFlatToRightBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -864,7 +864,7 @@ static void BobsleighRCTrackLeftBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -913,7 +913,7 @@ static void BobsleighRCTrackRightBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -964,7 +964,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1160,10 +1160,10 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1234,11 +1234,11 @@ static void BobsleighRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1290,11 +1290,11 @@ static void BobsleighRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1346,11 +1346,11 @@ static void BobsleighRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1402,11 +1402,11 @@ static void BobsleighRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1488,7 +1488,7 @@ static void BobsleighRCTrackLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1547,7 +1547,7 @@ static void BobsleighRCTrackSBendLeft(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1699,10 +1699,10 @@ static void BobsleighRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1764,7 +1764,7 @@ static void BobsleighRCTrackSBendRight(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1916,10 +1916,10 @@ static void BobsleighRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1981,7 +1981,7 @@ static void BobsleighRCTrackLeftQuarterTurn3(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2082,10 +2082,10 @@ static void BobsleighRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2156,7 +2156,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2257,10 +2257,10 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2331,7 +2331,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2432,10 +2432,10 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2488,10 +2488,10 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2592,7 +2592,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2653,7 +2653,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2754,10 +2754,10 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2810,10 +2810,10 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2914,7 +2914,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3003,7 +3003,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3199,10 +3199,10 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3255,10 +3255,10 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3453,7 +3453,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3514,7 +3514,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3709,10 +3709,10 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3765,10 +3765,10 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3964,7 +3964,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4037,7 +4037,7 @@ static void BobsleighRCTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -4073,7 +4073,7 @@ static void BobsleighRCTrackBlockBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -4122,7 +4122,7 @@ static void BobsleighRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -162,7 +162,7 @@ static void classicStandUpRCTrackFlatToLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ static void classicStandUpRCTrackFlatToRightBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -229,10 +229,10 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -367,7 +367,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 1 || direction == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -414,11 +414,11 @@ static void classicStandUpRCTrackLeftBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -445,11 +445,11 @@ static void classicStandUpRCTrackRightBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -476,11 +476,11 @@ static void classicStandUpRCTrack25DegUpToLeftBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -507,11 +507,11 @@ static void classicStandUpRCTrack25DegUpToRightBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -568,7 +568,7 @@ static void classicStandUpRCTrackLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -609,7 +609,7 @@ static void classicStandUpRCTrackLeftEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -762,7 +762,7 @@ static void classicStandUpRCTrackRightEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -932,10 +932,10 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -985,7 +985,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 1)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
|
||||
@@ -259,7 +259,7 @@ static void ClassicWoodenRCTrackFlatToLeftBank(
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -293,7 +293,7 @@ static void ClassicWoodenRCTrackFlatToRightBank(
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -340,7 +340,7 @@ static void ClassicWoodenRCTrackLeftBank(
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][0], height);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -384,11 +384,11 @@ static void ClassicWoodenRCTrackLeftBankTo25DegUp(
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -427,11 +427,11 @@ static void ClassicWoodenRCTrackRightBankTo25DegUp(
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -470,11 +470,11 @@ static void ClassicWoodenRCTrack25DegUpToLeftBank(
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -513,11 +513,11 @@ static void ClassicWoodenRCTrack25DegUpToRightBank(
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -796,7 +796,7 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5(
|
||||
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][0], height);
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
if (supportType[direction][trackSequence] != WoodenSupportSubType::Null)
|
||||
{
|
||||
@@ -958,7 +958,7 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank(
|
||||
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][0], height);
|
||||
WoodenRCTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
if (trackSequence == 0 || trackSequence == 3)
|
||||
{
|
||||
@@ -1162,7 +1162,7 @@ static void ClassicWoodenRCTrackLeftEighthBankToDiag(
|
||||
|
||||
if (trackSequence == 0 && (direction == 0 || direction == 3))
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (supportType[direction][trackSequence] != WoodenSupportSubType::Null)
|
||||
@@ -1360,7 +1360,7 @@ static void ClassicWoodenRCTrackRightEighthBankToDiag(
|
||||
|
||||
if (trackSequence == 0 && (direction == 0 || direction == 3))
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (supportType[direction][trackSequence] != WoodenSupportSubType::Null)
|
||||
|
||||
@@ -98,7 +98,7 @@ static void CompactInvertedRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ static void CompactInvertedRCTrackStation(
|
||||
{ { 0, 6, height + 29 }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -214,11 +214,11 @@ static void CompactInvertedRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -282,11 +282,11 @@ static void CompactInvertedRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 120);
|
||||
@@ -376,11 +376,11 @@ static void CompactInvertedRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -456,11 +456,11 @@ static void CompactInvertedRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -562,11 +562,11 @@ static void CompactInvertedRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
}
|
||||
@@ -655,11 +655,11 @@ static void CompactInvertedRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_13);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_13);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -756,7 +756,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -901,10 +901,10 @@ static void CompactInvertedRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -963,7 +963,7 @@ static void CompactInvertedRCTrackFlatToLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1009,7 +1009,7 @@ static void CompactInvertedRCTrackFlatToRightBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1055,7 +1055,7 @@ static void CompactInvertedRCTrackLeftBankToFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1101,7 +1101,7 @@ static void CompactInvertedRCTrackRightBankToFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1149,7 +1149,7 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1294,10 +1294,10 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1376,11 +1376,11 @@ static void CompactInvertedRCTrackLeftBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -1447,11 +1447,11 @@ static void CompactInvertedRCTrackRightBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -1518,11 +1518,11 @@ static void CompactInvertedRCTrack25DegUpToLeftBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_13);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_13);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -1589,11 +1589,11 @@ static void CompactInvertedRCTrack25DegUpToRightBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_13);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_13);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -1672,7 +1672,7 @@ static void CompactInvertedRCTrackLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1724,7 +1724,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -1858,10 +1858,10 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -1909,7 +1909,7 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -2042,10 +2042,10 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -2115,7 +2115,7 @@ static void CompactInvertedRCTrackSBendLeft(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2247,10 +2247,10 @@ static void CompactInvertedRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2302,7 +2302,7 @@ static void CompactInvertedRCTrackSBendRight(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2434,10 +2434,10 @@ static void CompactInvertedRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2508,7 +2508,7 @@ static void CompactInvertedRCTrackLeftVerticalLoop(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -2765,10 +2765,10 @@ static void CompactInvertedRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::InvertedSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::InvertedSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2839,7 +2839,7 @@ static void CompactInvertedRCTrackRightVerticalLoop(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -3095,10 +3095,10 @@ static void CompactInvertedRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::InvertedSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::InvertedSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -3150,7 +3150,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3228,10 +3228,10 @@ static void CompactInvertedRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3292,7 +3292,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3371,10 +3371,10 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3431,7 +3431,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -3475,10 +3475,10 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -3526,7 +3526,7 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -3570,10 +3570,10 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -3639,7 +3639,7 @@ static void CompactInvertedRCTrackLeftTwistDownToUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3697,10 +3697,10 @@ static void CompactInvertedRCTrackLeftTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3756,7 +3756,7 @@ static void CompactInvertedRCTrackRightTwistDownToUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3814,10 +3814,10 @@ static void CompactInvertedRCTrackRightTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3863,7 +3863,7 @@ static void CompactInvertedRCTrackLeftTwistUpToDown(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3939,10 +3939,10 @@ static void CompactInvertedRCTrackLeftTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3980,7 +3980,7 @@ static void CompactInvertedRCTrackRightTwistUpToDown(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4056,10 +4056,10 @@ static void CompactInvertedRCTrackRightTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -4123,7 +4123,7 @@ static void CompactInvertedRCTrackHalfLoopUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -4214,7 +4214,7 @@ static void CompactInvertedRCTrackHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4275,7 +4275,7 @@ static void CompactInvertedRCTrackLeftCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
break;
|
||||
@@ -4334,10 +4334,10 @@ static void CompactInvertedRCTrackLeftCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 40, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 40, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 40, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 40, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4397,7 +4397,7 @@ static void CompactInvertedRCTrackRightCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
break;
|
||||
@@ -4456,10 +4456,10 @@ static void CompactInvertedRCTrackRightCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 40, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 40, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 40, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 40, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4531,7 +4531,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 104 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::InvertedSlopeStart, +56, TunnelType::InvertedSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4576,7 +4577,8 @@ static void CompactInvertedRCTrackRightQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 104 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::InvertedSlopeStart, +56, TunnelType::InvertedSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4624,7 +4626,7 @@ static void CompactInvertedRCTrackBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -4672,7 +4674,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -4822,10 +4824,10 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -4877,7 +4879,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -5026,10 +5028,10 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -5081,7 +5083,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -5231,10 +5233,10 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -5286,7 +5288,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -5435,10 +5437,10 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -5477,7 +5479,7 @@ static void CompactInvertedRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -5622,7 +5624,7 @@ static void CompactInvertedRCTrack60DegUpTo90DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetVerticalTunnel(session, height + 56);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5702,10 +5704,10 @@ static void CompactInvertedRCTrack90DegUpTo60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5774,7 +5776,7 @@ static void CompactInvertedRCTrack60DegDownTo90DegDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5823,7 +5825,7 @@ static void CompactInvertedRCTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -6002,7 +6004,7 @@ static void CompactInvertedRCTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -6205,7 +6207,7 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -6390,7 +6392,7 @@ static void CompactInvertedRCTrackRightEighthBankToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -9700,7 +9702,7 @@ static void CompactInvertedRCTrackBlockBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 38, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ static void CorkscrewRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -151,7 +151,7 @@ static void CorkscrewRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, supportType);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -224,11 +224,11 @@ static void CorkscrewRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -302,11 +302,11 @@ static void CorkscrewRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -380,11 +380,11 @@ static void CorkscrewRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -470,11 +470,11 @@ static void CorkscrewRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -560,11 +560,11 @@ static void CorkscrewRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -638,11 +638,11 @@ static void CorkscrewRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -737,7 +737,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -885,10 +885,10 @@ static void CorkscrewRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -953,7 +953,7 @@ static void CorkscrewRCTrackFlatToLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -997,7 +997,7 @@ static void CorkscrewRCTrackFlatToRightBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1041,7 +1041,7 @@ static void CorkscrewRCTrackLeftBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1085,7 +1085,7 @@ static void CorkscrewRCTrackRightBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1128,7 +1128,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1279,10 +1279,10 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1350,11 +1350,11 @@ static void CorkscrewRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1401,11 +1401,11 @@ static void CorkscrewRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1452,11 +1452,11 @@ static void CorkscrewRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1503,11 +1503,11 @@ static void CorkscrewRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1582,7 +1582,7 @@ static void CorkscrewRCTrackLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1631,7 +1631,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1774,10 +1774,10 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1828,7 +1828,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1970,10 +1970,10 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2046,7 +2046,7 @@ static void CorkscrewRCTrackSBendLeft(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2158,10 +2158,10 @@ static void CorkscrewRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2212,7 +2212,7 @@ static void CorkscrewRCTrackSBendRight(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2324,10 +2324,10 @@ static void CorkscrewRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2381,7 +2381,7 @@ static void CorkscrewRCTrackLeftVerticalLoop(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2634,10 +2634,10 @@ static void CorkscrewRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2684,7 +2684,7 @@ static void CorkscrewRCTrackRightVerticalLoop(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
break;
|
||||
@@ -2874,10 +2874,10 @@ static void CorkscrewRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -2922,7 +2922,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2999,10 +2999,10 @@ static void CorkscrewRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3066,7 +3066,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3146,10 +3146,10 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3206,7 +3206,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3248,10 +3248,10 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3298,7 +3298,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3347,10 +3347,10 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3419,7 +3419,7 @@ static void CorkscrewRCTrackHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3513,7 +3513,7 @@ static void CorkscrewRCTrackHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3568,7 +3568,7 @@ static void CorkscrewRCTrackLeftCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3637,10 +3637,10 @@ static void CorkscrewRCTrackLeftCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3683,7 +3683,7 @@ static void CorkscrewRCTrackRightCorkscrewUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3760,10 +3760,10 @@ static void CorkscrewRCTrackRightCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3827,7 +3827,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3907,10 +3907,10 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3954,10 +3954,10 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4037,7 +4037,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4090,7 +4090,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4170,10 +4170,10 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4217,10 +4217,10 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4300,7 +4300,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4385,7 +4385,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4536,10 +4536,10 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4583,10 +4583,10 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4736,7 +4736,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4789,7 +4789,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4939,10 +4939,10 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4986,10 +4986,10 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5140,7 +5140,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5228,7 +5228,8 @@ static void CorkscrewRCTrackLeftQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -5274,7 +5275,8 @@ static void CorkscrewRCTrackRightQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -5324,7 +5326,7 @@ static void CorkscrewRCTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -5361,7 +5363,7 @@ static void CorkscrewRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -5404,7 +5406,7 @@ static void CorkscrewRCTrackFlatTo60DegUpLongBase(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5505,10 +5507,10 @@ static void CorkscrewRCTrackFlatTo60DegUpLongBase(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5556,7 +5558,7 @@ static void CorkscrewRCTrack60DegUpToFlatLongBase(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5657,10 +5659,10 @@ static void CorkscrewRCTrack60DegUpToFlatLongBase(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5725,7 +5727,7 @@ static void CorkscrewRCTrackLeftEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5890,7 +5892,7 @@ static void CorkscrewRCTrackRightEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -6075,7 +6077,7 @@ static void CorkscrewRCTrackLeftEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -6240,7 +6242,7 @@ static void CorkscrewRCTrackRightEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -9924,7 +9926,7 @@ static void CorkscrewRCTrackBlockBrakes(
|
||||
session, direction, session.TrackColours.WithIndex(_CorkscrewRCBlockBrakeImages[direction][isClosed]), { 0, 0, height },
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -9970,7 +9972,7 @@ static void CorkscrewRCTrackBooster(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -10005,7 +10007,7 @@ static void CorkscrewRCTrackLeftTwistDownToUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10080,10 +10082,10 @@ static void CorkscrewRCTrackLeftTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -10121,7 +10123,7 @@ static void CorkscrewRCTrackRightTwistDownToUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10196,10 +10198,10 @@ static void CorkscrewRCTrackRightTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -10246,7 +10248,7 @@ static void CorkscrewRCTrackLeftTwistUpToDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -10304,10 +10306,10 @@ static void CorkscrewRCTrackLeftTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -10362,7 +10364,7 @@ static void CorkscrewRCTrackRightTwistUpToDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -10420,10 +10422,10 @@ static void CorkscrewRCTrackRightTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 26, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -10470,7 +10472,7 @@ static void LayDownRCTrackLeftFlyerTwistUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10548,10 +10550,10 @@ static void LayDownRCTrackLeftFlyerTwistUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -10590,7 +10592,7 @@ static void LayDownRCTrackRightFlyerTwistUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10666,10 +10668,10 @@ static void LayDownRCTrackRightFlyerTwistUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -10708,7 +10710,7 @@ static void LayDownRCTrackFlyerHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -10802,7 +10804,7 @@ static void LayDownRCTrackFlyerHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -10870,7 +10872,7 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -10939,10 +10941,10 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10985,7 +10987,7 @@ static void LayDownRCTrackRightFlyerCorkscrewUp(
|
||||
MetalASupportsPaintSetup(session, supportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -11062,10 +11064,10 @@ static void LayDownRCTrackRightFlyerCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -94,7 +94,7 @@ static void HeartlineTwisterRCTrackFlat(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ static void HeartlineTwisterRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -211,11 +211,11 @@ static void HeartlineTwisterRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -309,11 +309,11 @@ static void HeartlineTwisterRCTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -407,11 +407,11 @@ static void HeartlineTwisterRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -505,11 +505,11 @@ static void HeartlineTwisterRCTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -603,11 +603,11 @@ static void HeartlineTwisterRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -701,11 +701,11 @@ static void HeartlineTwisterRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -809,11 +809,11 @@ static void HeartlineTwisterRCTrackHeartlineTransferUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -967,11 +967,11 @@ static void HeartlineTwisterRCTrackHeartlineTransferUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 16, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 16, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1024,11 +1024,11 @@ static void HeartlineTwisterRCTrackHeartlineTransferDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 16, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 16, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1187,11 +1187,11 @@ static void HeartlineTwisterRCTrackHeartlineTransferDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1433,7 +1433,7 @@ static void HeartlineTwisterRCTrackLeftHeartlineRoll(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1672,7 +1672,7 @@ static void HeartlineTwisterRCTrackRightHeartlineRoll(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -79,7 +79,7 @@ static void InvertedHairpinRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ static void InvertedHairpinRCTrackStation(
|
||||
{ { 0, 6, height + 24 }, { 32, 20, 1 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -195,11 +195,11 @@ static void InvertedHairpinRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -263,11 +263,11 @@ static void InvertedHairpinRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -357,11 +357,11 @@ static void InvertedHairpinRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -437,11 +437,11 @@ static void InvertedHairpinRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -543,11 +543,11 @@ static void InvertedHairpinRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -636,11 +636,11 @@ static void InvertedHairpinRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
}
|
||||
@@ -737,7 +737,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -816,10 +816,10 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -876,7 +876,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -920,10 +920,10 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -971,7 +971,7 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -1015,10 +1015,10 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -1085,14 +1085,14 @@ static void InvertedHairpinRCTrackLeftQuarterTurn1(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1177,11 +1177,11 @@ static void InvertedHairpinRCTrackFlatTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -1280,11 +1280,11 @@ static void InvertedHairpinRCTrack60DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -1332,7 +1332,7 @@ static void InvertedHairpinRCTrackBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -1363,7 +1363,7 @@ static void InvertedHairpinRCTrackBlockBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 30, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ static void InvertedImpulseRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 44, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ static void InvertedImpulseRCTrackStation(
|
||||
{ { 0, 6, height + 29 }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -137,11 +137,11 @@ static void InvertedImpulseRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -176,11 +176,11 @@ static void InvertedImpulseRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 120);
|
||||
@@ -238,11 +238,11 @@ static void InvertedImpulseRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -283,11 +283,11 @@ static void InvertedImpulseRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -329,11 +329,11 @@ static void InvertedImpulseRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -391,11 +391,11 @@ static void InvertedImpulseRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_13);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_13);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -530,7 +530,7 @@ static void InvertedImpulseRCTrack60DegUpTo90DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetVerticalTunnel(session, height + 56);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -581,10 +581,10 @@ static void InvertedImpulseRCTrack90DegUpTo60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -624,7 +624,7 @@ static void InvertedImpulseRCTrack60DegDownTo90DegDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1862,7 +1862,7 @@ static void JuniorRCPaintTrackFlat(
|
||||
auto subTypeOffset = JuniorRCGetSubTypeOffset<TSubType>(trackElement);
|
||||
auto imageId = session.TrackColours.WithIndex(junior_rc_track_pieces_flat[subTypeOffset][direction]);
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
@@ -1931,7 +1931,7 @@ static void JuniorRCPaintStation(
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
@@ -1949,7 +1949,8 @@ static void JuniorRCPaintTrack25DegUp(
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
|
||||
|
||||
int8_t tunnelHeights[4] = { -8, 8, 8, -8 };
|
||||
uint8_t tunnelType[4] = { TUNNEL_1, TUNNEL_2, TUNNEL_2, TUNNEL_1 };
|
||||
TunnelType tunnelType[4] = { TunnelType::StandardSlopeStart, TunnelType::StandardSlopeEnd, TunnelType::StandardSlopeEnd,
|
||||
TunnelType::StandardSlopeStart };
|
||||
PaintUtilPushTunnelRotated(session, direction, height + tunnelHeights[direction], tunnelType[direction]);
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -1977,11 +1978,11 @@ static void JuniorRCPaintTrackFlatTo25DegUp(
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -2008,16 +2009,16 @@ static void JuniorRCPaintTrack25DegUpToFlat(
|
||||
auto imageId = session.TrackColours.WithIndex(junior_rc_track_pieces_25_deg_up_to_flat[subTypeOffset][direction]);
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
|
||||
|
||||
uint8_t tunnelType;
|
||||
TunnelType tunnelType;
|
||||
int16_t tunnelHeight;
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
tunnelType = TUNNEL_12;
|
||||
tunnelType = TunnelType::_12;
|
||||
tunnelHeight = height + 8;
|
||||
}
|
||||
else
|
||||
{
|
||||
tunnelType = TUNNEL_0;
|
||||
tunnelType = TunnelType::StandardFlat;
|
||||
tunnelHeight = height - 8;
|
||||
}
|
||||
|
||||
@@ -2077,22 +2078,22 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -2178,13 +2179,13 @@ static void JuniorRCFlatToLeftBankPaintSetup(
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 1 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, 0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, 0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (junior_rc_track_pieces_flat_to_left_bank[direction][1] != 0)
|
||||
@@ -2229,13 +2230,13 @@ static void JuniorRCFlatToRightBankPaintSetup(
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 1 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, 0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, 0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (junior_rc_track_pieces_flat_to_right_bank[direction][1] != 0)
|
||||
@@ -2385,22 +2386,22 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -2510,16 +2511,16 @@ static void JuniorRCLeftBankTo25DegUpPaintSetup(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2573,16 +2574,16 @@ static void JuniorRCRightBankTo25DegUpPaintSetup(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2603,16 +2604,16 @@ static void JuniorRC25DegUpToLeftBankPaintSetup(
|
||||
{
|
||||
ImageId image_id;
|
||||
|
||||
uint8_t tunnelType;
|
||||
TunnelType tunnelType;
|
||||
int16_t tunnelHeight;
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
tunnelType = TUNNEL_12;
|
||||
tunnelType = TunnelType::_12;
|
||||
tunnelHeight = height + 8;
|
||||
}
|
||||
else
|
||||
{
|
||||
tunnelType = TUNNEL_0;
|
||||
tunnelType = TunnelType::StandardFlat;
|
||||
tunnelHeight = height - 8;
|
||||
}
|
||||
|
||||
@@ -2667,16 +2668,16 @@ static void JuniorRC25DegUpToRightBankPaintSetup(
|
||||
{
|
||||
ImageId image_id;
|
||||
|
||||
uint8_t tunnelType;
|
||||
TunnelType tunnelType;
|
||||
int16_t tunnelHeight;
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
tunnelType = TUNNEL_12;
|
||||
tunnelType = TunnelType::_12;
|
||||
tunnelHeight = height + 8;
|
||||
}
|
||||
else
|
||||
{
|
||||
tunnelType = TUNNEL_0;
|
||||
tunnelType = TunnelType::StandardFlat;
|
||||
tunnelHeight = height - 8;
|
||||
}
|
||||
|
||||
@@ -2792,11 +2793,11 @@ static void JuniorRCLeftBankPaintSetup(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, 0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, 0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -2850,19 +2851,19 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
if (direction == 2 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -2955,19 +2956,19 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3092,7 +3093,7 @@ static void JuniorRCSBendLeftPaintSetup(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3113,7 +3114,7 @@ static void JuniorRCSBendLeftPaintSetup(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3200,7 +3201,7 @@ static void JuniorRCSBendRightPaintSetup(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3221,7 +3222,7 @@ static void JuniorRCSBendRightPaintSetup(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3276,7 +3277,7 @@ static void JuniorRCRightQuarterTurn3TilesPaintSetup(
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint(
|
||||
session, 1, height, direction, trackSequence, session.TrackColours, junior_rc_track_pieces_flat_quarter_turn_3_tiles,
|
||||
defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
static constexpr MetalSupportType supportType[2][4] = {
|
||||
{ kSupportType, MetalSupportType::ForkAlt, kSupportType, MetalSupportType::ForkAlt },
|
||||
@@ -3384,7 +3385,7 @@ static void JuniorRCRightQuarterTurn3TilesBankPaintSetup(
|
||||
session, thickness[direction][trackSequence], height, direction, trackSequence, session.TrackColours,
|
||||
junior_rc_track_pieces_banked_quarter_turn_3_tiles, nullptr, junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths,
|
||||
junior_rc_right_quarter_turn_3_tiles_bank_offsets);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
@@ -3465,22 +3466,22 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegUp(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
|
||||
static constexpr MetalSupportType supportType[2][4] = {
|
||||
@@ -3550,22 +3551,22 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegDown(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
static constexpr MetalSupportType supportType[2][4] = {
|
||||
@@ -3669,22 +3670,22 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -3742,22 +3743,22 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -3845,22 +3846,22 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -3952,22 +3953,22 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -4070,13 +4071,13 @@ static void JuniorRCBrakePaintSetup(
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 6, 0, height }, { 20, 32, 1 });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 6, height }, { 32, 20, 1 });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -4109,13 +4110,13 @@ static void JuniorRCBlockBrakePaintSetup(
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 6, 0, height }, { 20, 32, 1 });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, image_id, { 0, 6, height }, { 32, 20, 1 });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -4167,11 +4168,11 @@ static void JuniorRCLeftEighthToDiagPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -4240,11 +4241,11 @@ static void JuniorRCRightEighthToDiagPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -4412,11 +4413,11 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -4566,11 +4567,11 @@ static void JuniorRCRightEighthToDiagBankPaintSetup(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -5323,16 +5324,16 @@ static void JuniorRCPaintTrack60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 56, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 56, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5409,16 +5410,16 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5474,16 +5475,16 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5729,16 +5730,16 @@ static void JuniorRCFlatTo60DegUpPaintSetup(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5792,16 +5793,16 @@ static void JuniorRC60DegUpToFlatPaintSetup(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5863,14 +5864,14 @@ static void JuniorRCBoosterPaintSetup(
|
||||
PaintAddImageAsParent(
|
||||
session, session.TrackColours.WithIndex(SPR_JUNIOR_RC_BOOSTER_NE_SW), { 0, 0, height }, { 20, 32, 1 });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(
|
||||
session, session.TrackColours.WithIndex(SPR_JUNIOR_RC_BOOSTER_NW_SE), { 0, 0, height }, { 32, 20, 1 });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -5900,7 +5901,7 @@ static void JuniorRCTrackOnRidePhoto(
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { { 0, 6, height + 3 }, { 32, 20, 1 } });
|
||||
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3 + photoCameraOffset, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48 + photoCameraOffset);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ static void LayDownRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ static void LayDownRCTrackStation(
|
||||
{ { 0, 6, height + 24 }, { 32, 20, 1 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -215,11 +215,11 @@ static void LayDownRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -254,11 +254,11 @@ static void LayDownRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -348,11 +348,11 @@ static void LayDownRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -393,11 +393,11 @@ static void LayDownRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -464,11 +464,11 @@ static void LayDownRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -557,11 +557,11 @@ static void LayDownRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
}
|
||||
@@ -658,7 +658,7 @@ static void LayDownRCTrackLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -808,10 +808,10 @@ static void LayDownRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -870,7 +870,7 @@ static void LayDownRCTrackFlatToLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -916,7 +916,7 @@ static void LayDownRCTrackFlatToRightBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -962,7 +962,7 @@ static void LayDownRCTrackLeftBankToFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -1008,7 +1008,7 @@ static void LayDownRCTrackRightBankToFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -1056,7 +1056,7 @@ static void LayDownRCTrackBankedLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -1201,10 +1201,10 @@ static void LayDownRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1283,11 +1283,11 @@ static void LayDownRCTrackLeftBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -1354,11 +1354,11 @@ static void LayDownRCTrackRightBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -1425,11 +1425,11 @@ static void LayDownRCTrack25DegUpToLeftBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
}
|
||||
@@ -1496,11 +1496,11 @@ static void LayDownRCTrack25DegUpToRightBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
}
|
||||
@@ -1579,7 +1579,7 @@ static void LayDownRCTrackLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -1765,10 +1765,10 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -1816,7 +1816,7 @@ static void LayDownRCTrackRightQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -1949,10 +1949,10 @@ static void LayDownRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2022,7 +2022,7 @@ static void LayDownRCTrackSBendLeft(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -2158,10 +2158,10 @@ static void LayDownRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2213,7 +2213,7 @@ static void LayDownRCTrackSBendRight(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -2349,10 +2349,10 @@ static void LayDownRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2404,7 +2404,7 @@ static void LayDownRCTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -2483,10 +2483,10 @@ static void LayDownRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2547,7 +2547,7 @@ static void LayDownRCTrackLeftQuarterTurn3Bank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -2626,10 +2626,10 @@ static void LayDownRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2686,7 +2686,7 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -2730,10 +2730,10 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2781,7 +2781,7 @@ static void LayDownRCTrackRightQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -2825,10 +2825,10 @@ static void LayDownRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2895,7 +2895,8 @@ static void LayDownRCTrackLeftQuarterTurn160DegUp(
|
||||
break;
|
||||
}
|
||||
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -2941,7 +2942,8 @@ static void LayDownRCTrackRightQuarterTurn160DegUp(
|
||||
break;
|
||||
}
|
||||
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -2989,7 +2991,7 @@ static void LayDownRCTrackBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -3024,7 +3026,7 @@ static void LayDownRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -3067,7 +3069,7 @@ static void LayDownRCTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -3246,7 +3248,7 @@ static void LayDownRCTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -3449,7 +3451,7 @@ static void LayDownRCTrackLeftEighthBankToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -3634,7 +3636,7 @@ static void LayDownRCTrackRightEighthBankToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -6815,7 +6817,7 @@ static void LayDownRCTrackLeftFlyerTwistDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -6874,10 +6876,10 @@ static void LayDownRCTrackLeftFlyerTwistDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6933,7 +6935,7 @@ static void LayDownRCTrackRightFlyerTwistDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -6991,10 +6993,10 @@ static void LayDownRCTrackRightFlyerTwistDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7039,7 +7041,7 @@ static void LayDownRCTrackFlyerHalfLoopDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -7134,7 +7136,7 @@ static void LayDownRCTrackFlyerHalfLoopDown(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -7187,7 +7189,7 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -7246,10 +7248,10 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7302,7 +7304,7 @@ static void LayDownRCTrackBlockBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 33, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -7349,7 +7351,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -7499,10 +7501,10 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -7553,7 +7555,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -7702,10 +7704,10 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -7756,7 +7758,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -7906,10 +7908,10 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -7960,7 +7962,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -8109,10 +8111,10 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -8175,7 +8177,7 @@ static void LayDownRCTrackHalfLoopInvertedUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
break;
|
||||
@@ -8266,7 +8268,7 @@ static void LayDownRCTrackHalfLoopInvertedUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
|
||||
@@ -65,7 +65,7 @@ static void LimLaunchedRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -107,7 +107,7 @@ static void LimLaunchedRCTrackLeftVerticalLoop(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -344,10 +344,10 @@ static void LimLaunchedRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -393,7 +393,7 @@ static void LimLaunchedRCTrackRightVerticalLoop(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
break;
|
||||
@@ -567,10 +567,10 @@ static void LimLaunchedRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -626,7 +626,7 @@ static void LimLaunchedRCTrackLeftTwistDownToUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -723,10 +723,10 @@ static void LimLaunchedRCTrackLeftTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height - 32, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height - 32, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -788,7 +788,7 @@ static void LimLaunchedRCTrackRightTwistDownToUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -885,10 +885,10 @@ static void LimLaunchedRCTrackRightTwistDownToUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 32, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 32, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -949,7 +949,7 @@ static void LimLaunchedRCTrackLeftTwistUpToDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 32, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1047,10 +1047,10 @@ static void LimLaunchedRCTrackLeftTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1111,7 +1111,7 @@ static void LimLaunchedRCTrackRightTwistUpToDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 32, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1209,10 +1209,10 @@ static void LimLaunchedRCTrackRightTwistUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1264,7 +1264,7 @@ static void LimLaunchedRCTrackLeftCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1333,10 +1333,10 @@ static void LimLaunchedRCTrackLeftCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1378,7 +1378,7 @@ static void LimLaunchedRCTrackRightCorkscrewUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1455,10 +1455,10 @@ static void LimLaunchedRCTrackRightCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1506,7 +1506,7 @@ static void LimLaunchedRCTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1593,7 +1593,7 @@ static void LimLaunchedRCTrack60DegUpTo90DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetVerticalTunnel(session, height + 56);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1644,10 +1644,10 @@ static void LimLaunchedRCTrack90DegUpTo60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 48, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 48, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 48, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1687,7 +1687,7 @@ static void LimLaunchedRCTrack60DegDownTo90DegDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 48, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1793,7 +1793,7 @@ static void LimLaunchedRCTrack90DegToInvertedFlatQuarterLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1827,7 +1827,7 @@ static void LimLaunchedRCTrackBlockBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1993,7 +1993,7 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2090,10 +2090,10 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2161,7 +2161,7 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2258,10 +2258,10 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2324,7 +2324,7 @@ static void LimLaunchedRCTrackHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2425,7 +2425,7 @@ static void LimLaunchedRCTrackHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2477,7 +2477,7 @@ static void LimLaunchedRCTrackFlatTo60DegUpLongBase(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2578,10 +2578,10 @@ static void LimLaunchedRCTrackFlatTo60DegUpLongBase(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2626,7 +2626,7 @@ static void LimLaunchedRCTrack60DegUpToFlatLongBase(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2727,10 +2727,10 @@ static void LimLaunchedRCTrack60DegUpToFlatLongBase(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2789,7 +2789,7 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2959,10 +2959,10 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3005,7 +3005,7 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3174,10 +3174,10 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3234,7 +3234,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3387,7 +3387,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3429,7 +3429,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3582,7 +3582,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp(
|
||||
0xFFFF, 0);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3650,7 +3650,7 @@ static void LimLaunchedRCTrackLeftZeroGRollUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3723,10 +3723,10 @@ static void LimLaunchedRCTrackLeftZeroGRollUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3789,7 +3789,7 @@ static void LimLaunchedRCTrackRightZeroGRollUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3862,10 +3862,10 @@ static void LimLaunchedRCTrackRightZeroGRollUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3932,7 +3932,7 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 25, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4052,10 +4052,10 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -4099,7 +4099,7 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 25, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4220,10 +4220,10 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -4281,7 +4281,7 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4327,10 +4327,10 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4382,7 +4382,7 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4428,10 +4428,10 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4480,7 +4480,7 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height - 6, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4529,10 +4529,10 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4581,7 +4581,7 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height - 6, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4630,10 +4630,10 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4682,7 +4682,7 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4894,7 +4894,7 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4942,7 +4942,7 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5154,7 +5154,7 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5222,11 +5222,11 @@ static void LimLaunchedRCTrackFlatTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -5268,11 +5268,11 @@ static void LimLaunchedRCTrack60DegUpToFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 16, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -5713,7 +5713,7 @@ static void LimLaunchedRCTrackBooster(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ static void LoopingRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ static void LoopingRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -195,11 +195,11 @@ static void LoopingRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -272,11 +272,11 @@ static void LoopingRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -349,11 +349,11 @@ static void LoopingRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -438,11 +438,11 @@ static void LoopingRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -527,11 +527,11 @@ static void LoopingRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -604,11 +604,11 @@ static void LoopingRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -696,7 +696,7 @@ static void LoopingRCTrackLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -844,10 +844,10 @@ static void LoopingRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -910,7 +910,7 @@ static void LoopingRCTrackFlatToLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -953,7 +953,7 @@ static void LoopingRCTrackFlatToRightBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -996,7 +996,7 @@ static void LoopingRCTrackLeftBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1039,7 +1039,7 @@ static void LoopingRCTrackRightBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1081,7 +1081,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1232,10 +1232,10 @@ static void LoopingRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1300,11 +1300,11 @@ static void LoopingRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1350,11 +1350,11 @@ static void LoopingRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1400,11 +1400,11 @@ static void LoopingRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1450,11 +1450,11 @@ static void LoopingRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1524,7 +1524,7 @@ static void LoopingRCTrackLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1571,7 +1571,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1714,10 +1714,10 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1767,7 +1767,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1909,10 +1909,10 @@ static void LoopingRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1980,7 +1980,7 @@ static void LoopingRCTrackSBendLeft(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2092,10 +2092,10 @@ static void LoopingRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2145,7 +2145,7 @@ static void LoopingRCTrackSBendRight(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2257,10 +2257,10 @@ static void LoopingRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2305,7 +2305,7 @@ static void LoopingRCTrackLeftVerticalLoop(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2580,10 +2580,10 @@ static void LoopingRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2628,7 +2628,7 @@ static void LoopingRCTrackRightVerticalLoop(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
break;
|
||||
@@ -2847,10 +2847,10 @@ static void LoopingRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -2894,7 +2894,7 @@ static void LoopingRCTrackLeftQuarterTurn3(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2971,10 +2971,10 @@ static void LoopingRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3036,7 +3036,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3116,10 +3116,10 @@ static void LoopingRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3174,7 +3174,7 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3216,10 +3216,10 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3265,7 +3265,7 @@ static void LoopingRCTrackRightQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3314,10 +3314,10 @@ static void LoopingRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3388,7 +3388,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3468,10 +3468,10 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3515,10 +3515,10 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3598,7 +3598,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3650,7 +3650,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3730,10 +3730,10 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3777,10 +3777,10 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3860,7 +3860,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3940,7 +3940,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4091,10 +4091,10 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4138,10 +4138,10 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4291,7 +4291,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4343,7 +4343,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4493,10 +4493,10 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4540,10 +4540,10 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4694,7 +4694,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4777,7 +4777,8 @@ static void LoopingRCTrackLeftQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4822,7 +4823,8 @@ static void LoopingRCTrackRightQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 75 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::StandardSlopeStart, +56, TunnelType::StandardSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4873,7 +4875,7 @@ static void LoopingRCTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -4912,11 +4914,11 @@ static void LoopingRCTrack25DegUpLeftBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -4956,11 +4958,11 @@ static void LoopingRCTrack25DegUpRightBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -4997,7 +4999,7 @@ static void LoopingRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -5052,7 +5054,7 @@ static void LoopingRCTrackLeftEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5216,7 +5218,7 @@ static void LoopingRCTrackRightEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5398,7 +5400,7 @@ static void LoopingRCTrackLeftEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5562,7 +5564,7 @@ static void LoopingRCTrackRightEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -9226,7 +9228,7 @@ static void LoopingRCTrackBlockBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -9262,7 +9264,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9306,10 +9308,10 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9356,7 +9358,7 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9407,10 +9409,10 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9478,7 +9480,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9624,10 +9626,10 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9677,7 +9679,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9822,10 +9824,10 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9896,11 +9898,11 @@ static void LoopingRCTrack25DegUpToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9943,11 +9945,11 @@ static void LoopingRCTrack25DegUpToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9990,11 +9992,11 @@ static void LoopingRCTrackLeftBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -10037,11 +10039,11 @@ static void LoopingRCTrackRightBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -10113,11 +10115,11 @@ static void LoopingRCTrackLeftBankedFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10157,11 +10159,11 @@ static void LoopingRCTrackRightBankedFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10201,11 +10203,11 @@ static void LoopingRCTrackLeftBanked25DegUpToLeftBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10245,11 +10247,11 @@ static void LoopingRCTrackRightBanked25DegUpToRightBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10324,11 +10326,11 @@ static void LoopingRCTrackFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10371,11 +10373,11 @@ static void LoopingRCTrackFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10418,11 +10420,11 @@ static void LoopingRCTrackLeftBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10465,11 +10467,11 @@ static void LoopingRCTrackRightBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10530,7 +10532,7 @@ static void LoopingRCTrackBooster(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ static void MineRideTrackFlat(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -76,7 +76,7 @@ static void MineRideTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -129,11 +129,11 @@ static void MineRideTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -187,11 +187,11 @@ static void MineRideTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -245,11 +245,11 @@ static void MineRideTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -320,7 +320,7 @@ static void MineRideTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -475,10 +475,10 @@ static void MineRideTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -555,7 +555,7 @@ static void MineRideTrackFlatToLeftBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -612,7 +612,7 @@ static void MineRideTrackFlatToRightBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -669,7 +669,7 @@ static void MineRideTrackLeftBankToFlat(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -726,7 +726,7 @@ static void MineRideTrackRightBankToFlat(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -775,7 +775,7 @@ static void MineRideTrackBankedLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -933,10 +933,10 @@ static void MineRideTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1015,11 +1015,11 @@ static void MineRideTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1079,11 +1079,11 @@ static void MineRideTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1143,11 +1143,11 @@ static void MineRideTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1207,11 +1207,11 @@ static void MineRideTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1295,7 +1295,7 @@ static void MineRideTrackLeftBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1349,7 +1349,7 @@ static void MineRideTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1468,10 +1468,10 @@ static void MineRideTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1528,7 +1528,7 @@ static void MineRideTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1649,10 +1649,10 @@ static void MineRideTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1709,7 +1709,7 @@ static void MineRideTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1793,10 +1793,10 @@ static void MineRideTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1865,7 +1865,7 @@ static void MineRideTrackLeftQuarterTurn3Bank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1952,10 +1952,10 @@ static void MineRideTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2024,7 +2024,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2111,10 +2111,10 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2165,10 +2165,10 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2255,7 +2255,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2314,7 +2314,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2401,10 +2401,10 @@ static void MineRideTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2455,10 +2455,10 @@ static void MineRideTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2545,7 +2545,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2632,7 +2632,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2790,10 +2790,10 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2844,10 +2844,10 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3004,7 +3004,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3063,7 +3063,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3220,10 +3220,10 @@ static void MineRideTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3274,10 +3274,10 @@ static void MineRideTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3435,7 +3435,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3511,7 +3511,7 @@ static void MineRideTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -3557,7 +3557,7 @@ static void MineRideTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3728,7 +3728,7 @@ static void MineRideTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3917,7 +3917,7 @@ static void MineRideTrackLeftEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -4088,7 +4088,7 @@ static void MineRideTrackRightEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
|
||||
@@ -122,7 +122,7 @@ static void MineTrainRCTrackFlat(
|
||||
break;
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -157,7 +157,7 @@ static void MineTrainRCTrackStation(
|
||||
}
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -226,11 +226,11 @@ static void MineTrainRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -271,11 +271,11 @@ static void MineTrainRCTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -345,11 +345,11 @@ static void MineTrainRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -396,11 +396,11 @@ static void MineTrainRCTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -447,11 +447,11 @@ static void MineTrainRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -521,11 +521,11 @@ static void MineTrainRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -620,7 +620,7 @@ static void MineTrainRCTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -800,10 +800,10 @@ static void MineTrainRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -859,7 +859,7 @@ static void MineTrainRCTrackFlatToLeftBank(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -902,7 +902,7 @@ static void MineTrainRCTrackFlatToRightBank(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -945,7 +945,7 @@ static void MineTrainRCTrackLeftBankToFlat(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -988,7 +988,7 @@ static void MineTrainRCTrackRightBankToFlat(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1037,7 +1037,7 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1225,10 +1225,10 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1287,11 +1287,11 @@ static void MineTrainRCTrackLeftBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1338,11 +1338,11 @@ static void MineTrainRCTrackRightBankTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1389,11 +1389,11 @@ static void MineTrainRCTrack25DegUpToLeftBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1440,11 +1440,11 @@ static void MineTrainRCTrack25DegUpToRightBank(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1514,7 +1514,7 @@ static void MineTrainRCTrackLeftBank(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1565,7 +1565,7 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -1754,10 +1754,10 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1804,7 +1804,7 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -1991,10 +1991,10 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2062,7 +2062,7 @@ static void MineTrainRCTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2182,10 +2182,10 @@ static void MineTrainRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2235,7 +2235,7 @@ static void MineTrainRCTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2355,10 +2355,10 @@ static void MineTrainRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2408,7 +2408,7 @@ static void MineTrainRCTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2487,10 +2487,10 @@ static void MineTrainRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2552,7 +2552,7 @@ static void MineTrainRCTrackLeftQuarterTurn3Bank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2635,10 +2635,10 @@ static void MineTrainRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2693,7 +2693,7 @@ static void MineTrainRCTrackLeftQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2746,10 +2746,10 @@ static void MineTrainRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2795,7 +2795,7 @@ static void MineTrainRCTrackRightQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2848,10 +2848,10 @@ static void MineTrainRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2922,7 +2922,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3020,10 +3020,10 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3082,10 +3082,10 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3182,7 +3182,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3249,7 +3249,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3347,10 +3347,10 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3409,10 +3409,10 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3510,7 +3510,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3605,7 +3605,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3821,10 +3821,10 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3883,10 +3883,10 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4099,7 +4099,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4166,7 +4166,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4373,10 +4373,10 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4435,10 +4435,10 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4648,7 +4648,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4721,7 +4721,7 @@ static void MineTrainRCTrackBrakes(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -4759,7 +4759,7 @@ static void MineTrainRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 2, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -4805,7 +4805,7 @@ static void MineTrainRCTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -4958,7 +4958,7 @@ static void MineTrainRCTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -5129,7 +5129,7 @@ static void MineTrainRCTrackLeftEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -5282,7 +5282,7 @@ static void MineTrainRCTrackRightEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -7122,7 +7122,7 @@ static void MineTrainRCTrackBlockBrakes(
|
||||
{ { 0, 6, height }, { 32, 20, 1 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ static void MiniRCTrackFlat(
|
||||
break;
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -148,7 +148,7 @@ static void MiniRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -252,11 +252,11 @@ static void MiniRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -310,11 +310,11 @@ static void MiniRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -419,11 +419,11 @@ static void MiniRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -483,11 +483,11 @@ static void MiniRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -547,11 +547,11 @@ static void MiniRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -656,11 +656,11 @@ static void MiniRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -755,7 +755,7 @@ static void MiniRCTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -910,10 +910,10 @@ static void MiniRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -990,7 +990,7 @@ static void MiniRCTrackFlatToLeftBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1047,7 +1047,7 @@ static void MiniRCTrackFlatToRightBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1104,7 +1104,7 @@ static void MiniRCTrackLeftBankToFlat(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1161,7 +1161,7 @@ static void MiniRCTrackRightBankToFlat(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1210,7 +1210,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1368,10 +1368,10 @@ static void MiniRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1450,11 +1450,11 @@ static void MiniRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1514,11 +1514,11 @@ static void MiniRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1578,11 +1578,11 @@ static void MiniRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1642,11 +1642,11 @@ static void MiniRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1730,7 +1730,7 @@ static void MiniRCTrackLeftBank(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1784,7 +1784,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1934,10 +1934,10 @@ static void MiniRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1994,7 +1994,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2143,10 +2143,10 @@ static void MiniRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2221,7 +2221,7 @@ static void MiniRCTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2340,10 +2340,10 @@ static void MiniRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2400,7 +2400,7 @@ static void MiniRCTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2521,10 +2521,10 @@ static void MiniRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2581,7 +2581,7 @@ static void MiniRCTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2665,10 +2665,10 @@ static void MiniRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2737,7 +2737,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2824,10 +2824,10 @@ static void MiniRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2889,7 +2889,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2938,10 +2938,10 @@ static void MiniRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2994,7 +2994,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3043,10 +3043,10 @@ static void MiniRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3124,7 +3124,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3211,10 +3211,10 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3265,10 +3265,10 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3355,7 +3355,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3414,7 +3414,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3501,10 +3501,10 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3555,10 +3555,10 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3645,7 +3645,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3732,7 +3732,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3890,10 +3890,10 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3944,10 +3944,10 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4104,7 +4104,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4163,7 +4163,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4320,10 +4320,10 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4374,10 +4374,10 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4535,7 +4535,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4618,7 +4618,8 @@ static void MiniRCTrackLeftQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::SquareSlopeStart, +56, TunnelType::SquareSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4663,7 +4664,8 @@ static void MiniRCTrackRightQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::SquareSlopeStart, +56, TunnelType::SquareSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -4713,7 +4715,7 @@ static void MiniRCTrackBrakes(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -4766,11 +4768,11 @@ static void MiniRCTrack25DegUpLeftBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -4824,11 +4826,11 @@ static void MiniRCTrack25DegUpRightBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -4867,7 +4869,7 @@ static void MiniRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -4929,7 +4931,7 @@ static void MiniRCTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5100,7 +5102,7 @@ static void MiniRCTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5289,7 +5291,7 @@ static void MiniRCTrackLeftEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5460,7 +5462,7 @@ static void MiniRCTrackRightEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -8716,7 +8718,7 @@ static void MiniRCTrackBlockBrakes(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -8759,7 +8761,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -8810,10 +8812,10 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -8867,7 +8869,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -8918,10 +8920,10 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -8996,7 +8998,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9149,10 +9151,10 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9209,7 +9211,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -9361,10 +9363,10 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -9449,11 +9451,11 @@ static void MiniRCTrack25DegUpToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9510,11 +9512,11 @@ static void MiniRCTrack25DegUpToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9571,11 +9573,11 @@ static void MiniRCTrackLeftBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9632,11 +9634,11 @@ static void MiniRCTrackRightBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -9722,11 +9724,11 @@ static void MiniRCTrackLeftBankedFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -9780,11 +9782,11 @@ static void MiniRCTrackRightBankedFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -9838,11 +9840,11 @@ static void MiniRCTrackLeftBanked25DegUpToLeftBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -9896,11 +9898,11 @@ static void MiniRCTrackRightBanked25DegUpToRightBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -9989,11 +9991,11 @@ static void MiniRCTrackFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10050,11 +10052,11 @@ static void MiniRCTrackFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -10111,11 +10113,11 @@ static void MiniRCTrackLeftBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10172,11 +10174,11 @@ static void MiniRCTrackRightBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -10250,7 +10252,7 @@ static void MiniRCTrackLeftCurvedLiftHill(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10299,10 +10301,10 @@ static void MiniRCTrackLeftCurvedLiftHill(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -10354,7 +10356,7 @@ static void MiniRCTrackRightCurvedLiftHill(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -10403,10 +10405,10 @@ static void MiniRCTrackRightCurvedLiftHill(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -10450,7 +10452,7 @@ static void MiniRCTrackBooster(
|
||||
}
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ static void MiniSuspendedRCTrackFlat(
|
||||
}
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ static void MiniSuspendedRCTrackStation(
|
||||
{ { 0, 2, height }, { 32, 20, 1 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -200,11 +200,11 @@ static void MiniSuspendedRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -294,11 +294,11 @@ static void MiniSuspendedRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -388,11 +388,11 @@ static void MiniSuspendedRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -473,7 +473,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -619,10 +619,10 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -691,7 +691,7 @@ static void MiniSuspendedRCTrackSBendLeft(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -829,10 +829,10 @@ static void MiniSuspendedRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -892,7 +892,7 @@ static void MiniSuspendedRCTrackSBendRight(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1030,10 +1030,10 @@ static void MiniSuspendedRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1093,7 +1093,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
break;
|
||||
@@ -1176,10 +1176,10 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1252,7 +1252,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1451,7 +1451,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -208,13 +208,13 @@ static void PaintReverseFreefallRCFlat(
|
||||
{
|
||||
auto imageId = session.TrackColours.WithIndex(SPR_REVERSE_FREEFALL_RC_FLAT_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 1 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto imageId = session.TrackColours.WithIndex(SPR_REVERSE_FREEFALL_RC_FLAT_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -241,7 +241,7 @@ static void PaintReverseFreefallRCStation(
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else if (direction == 1 || direction == 3)
|
||||
{
|
||||
@@ -255,7 +255,7 @@ static void PaintReverseFreefallRCStation(
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement);
|
||||
@@ -296,11 +296,11 @@ static void PaintReverseFreefallRCSlope(
|
||||
int32_t tunnelOffset = tunnelOffsets03[trackSequence];
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height + tunnelOffset, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + tunnelOffset, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height + tunnelOffset, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + tunnelOffset, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -425,7 +425,7 @@ static void PaintReverseFreefallRCOnridePhoto(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
|
||||
@@ -95,7 +95,7 @@ static void ReverserRCTrackFlat(
|
||||
break;
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ static void ReverserRCTrackStation(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -208,11 +208,11 @@ static void ReverserRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -301,11 +301,11 @@ static void ReverserRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -394,11 +394,11 @@ static void ReverserRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -465,7 +465,7 @@ static void ReverserRCTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -634,10 +634,10 @@ static void ReverserRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -696,7 +696,7 @@ static void ReverserRCTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -820,10 +820,10 @@ static void ReverserRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -873,7 +873,7 @@ static void ReverserRCTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -997,10 +997,10 @@ static void ReverserRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1050,7 +1050,7 @@ static void ReverserRCTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1127,10 +1127,10 @@ static void ReverserRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1170,7 +1170,7 @@ static void ReverserRCTrackBrakes(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1216,7 +1216,7 @@ static void ReverserRCTrackLeftReverser(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1396,10 +1396,10 @@ static void ReverserRCTrackLeftReverser(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1449,7 +1449,7 @@ static void ReverserRCTrackRightReverser(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1629,10 +1629,10 @@ static void ReverserRCTrackRightReverser(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -143,7 +143,7 @@ static void SideFrictionRCTrackFlat(
|
||||
break;
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -166,7 +166,7 @@ static void SideFrictionRCTrackStation(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -278,11 +278,11 @@ static void SideFrictionRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -395,11 +395,11 @@ static void SideFrictionRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -512,11 +512,11 @@ static void SideFrictionRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -595,7 +595,7 @@ static void SideFrictionRCTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -812,10 +812,10 @@ static void SideFrictionRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -886,7 +886,7 @@ static void SideFrictionRCTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1046,10 +1046,10 @@ static void SideFrictionRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1111,7 +1111,7 @@ static void SideFrictionRCTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1271,10 +1271,10 @@ static void SideFrictionRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1336,7 +1336,7 @@ static void SideFrictionRCTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1437,10 +1437,10 @@ static void SideFrictionRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1486,7 +1486,7 @@ static void SideFrictionRCTrackBrakes(
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::NwSe, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1544,7 +1544,7 @@ static void SideFrictionRCTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -1761,7 +1761,7 @@ static void SideFrictionRCTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -2943,11 +2943,11 @@ static void SideFrictionRCTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -3014,11 +3014,11 @@ static void SideFrictionRCTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -3085,11 +3085,11 @@ static void SideFrictionRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -108,7 +108,7 @@ static void StandUpRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -143,7 +143,7 @@ static void StandUpRCTrackStation(
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -207,11 +207,11 @@ static void StandUpRCTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -280,11 +280,11 @@ static void StandUpRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -349,11 +349,11 @@ static void StandUpRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -434,11 +434,11 @@ static void StandUpRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -519,11 +519,11 @@ static void StandUpRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -588,11 +588,11 @@ static void StandUpRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -676,7 +676,7 @@ static void StandUpRCTrackLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -808,10 +808,10 @@ static void StandUpRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -864,7 +864,7 @@ static void StandUpRCTrackFlatToLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -897,7 +897,7 @@ static void StandUpRCTrackFlatToRightBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -930,7 +930,7 @@ static void StandUpRCTrackLeftBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -963,7 +963,7 @@ static void StandUpRCTrackRightBankToFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1005,7 +1005,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1156,10 +1156,10 @@ static void StandUpRCTrackBankedLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1214,11 +1214,11 @@ static void StandUpRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1254,11 +1254,11 @@ static void StandUpRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1294,11 +1294,11 @@ static void StandUpRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1334,11 +1334,11 @@ static void StandUpRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -1404,7 +1404,7 @@ static void StandUpRCTrackLeftBank(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1473,7 +1473,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1706,10 +1706,10 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1781,7 +1781,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2013,10 +2013,10 @@ static void StandUpRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2080,7 +2080,7 @@ static void StandUpRCTrackSBendLeft(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2184,10 +2184,10 @@ static void StandUpRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2233,7 +2233,7 @@ static void StandUpRCTrackSBendRight(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2337,10 +2337,10 @@ static void StandUpRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2386,7 +2386,7 @@ static void StandUpRCTrackLeftVerticalLoop(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2624,10 +2624,10 @@ static void StandUpRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2673,7 +2673,7 @@ static void StandUpRCTrackRightVerticalLoop(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
break;
|
||||
@@ -2855,10 +2855,10 @@ static void StandUpRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -2898,7 +2898,7 @@ static void StandUpRCTrackLeftQuarterTurn3(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -2967,10 +2967,10 @@ static void StandUpRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3032,7 +3032,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3112,10 +3112,10 @@ static void StandUpRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3196,7 +3196,7 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3264,10 +3264,10 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3339,7 +3339,7 @@ static void StandUpRCTrackRightQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3421,10 +3421,10 @@ static void StandUpRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3488,7 +3488,7 @@ static void StandUpRCTrackHalfLoopUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3580,7 +3580,7 @@ static void StandUpRCTrackHalfLoopUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -3633,7 +3633,7 @@ static void StandUpRCTrackLeftCorkscrewUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3702,10 +3702,10 @@ static void StandUpRCTrackLeftCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3747,7 +3747,7 @@ static void StandUpRCTrackRightCorkscrewUp(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3824,10 +3824,10 @@ static void StandUpRCTrackRightCorkscrewUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -3888,7 +3888,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3968,10 +3968,10 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4015,10 +4015,10 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4098,7 +4098,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4150,7 +4150,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4230,10 +4230,10 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4277,10 +4277,10 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4360,7 +4360,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4440,7 +4440,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4591,10 +4591,10 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4638,10 +4638,10 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4791,7 +4791,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4843,7 +4843,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -4993,10 +4993,10 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5040,10 +5040,10 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5194,7 +5194,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5259,7 +5259,7 @@ static void StandUpRCTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -5295,7 +5295,7 @@ static void StandUpRCTrackOnRidePhoto(
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -5334,7 +5334,7 @@ static void StandUpRCTrackLeftEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5498,7 +5498,7 @@ static void StandUpRCTrackRightEighthToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5680,7 +5680,7 @@ static void StandUpRCTrackLeftEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5844,7 +5844,7 @@ static void StandUpRCTrackRightEighthBankToDiag(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -9499,7 +9499,7 @@ static void StandUpRCTrackBlockBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ static void SteeplechaseTrackFlat(
|
||||
break;
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -97,7 +97,7 @@ static void SteeplechaseTrackStation(
|
||||
{ { 0, 0, height }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -165,11 +165,11 @@ static void SteeplechaseTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -238,11 +238,11 @@ static void SteeplechaseTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -311,11 +311,11 @@ static void SteeplechaseTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -382,7 +382,7 @@ static void SteeplechaseTrackLeftQuarterTurn5(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -521,10 +521,10 @@ static void SteeplechaseTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -586,7 +586,7 @@ static void SteeplechaseTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -699,10 +699,10 @@ static void SteeplechaseTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -755,7 +755,7 @@ static void SteeplechaseTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -868,10 +868,10 @@ static void SteeplechaseTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -924,7 +924,7 @@ static void SteeplechaseTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -1000,10 +1000,10 @@ static void SteeplechaseTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1049,7 +1049,7 @@ static void SteeplechaseTrackBrakes(
|
||||
session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1095,7 +1095,7 @@ static void SteeplechaseTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1266,7 +1266,7 @@ static void SteeplechaseTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -2503,7 +2503,7 @@ static void SteeplechaseTrackBlockBrakes(
|
||||
session, MetalSupportType::StickAlt, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ static void SuspendedSwingingRCTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 44, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ static void SuspendedSwingingRCTrackStation(
|
||||
{ { 0, 6, height + 29 }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -191,11 +191,11 @@ static void SuspendedSwingingRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -230,11 +230,11 @@ static void SuspendedSwingingRCTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 120);
|
||||
@@ -324,11 +324,11 @@ static void SuspendedSwingingRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -369,11 +369,11 @@ static void SuspendedSwingingRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -475,11 +475,11 @@ static void SuspendedSwingingRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::InvertedSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
}
|
||||
@@ -568,11 +568,11 @@ static void SuspendedSwingingRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_13);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_13);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -669,7 +669,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -814,10 +814,10 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -874,7 +874,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -1009,10 +1009,10 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -1060,7 +1060,7 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -1194,10 +1194,10 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -1263,7 +1263,7 @@ static void SuspendedSwingingRCTrackSBendLeft(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1387,10 +1387,10 @@ static void SuspendedSwingingRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1438,7 +1438,7 @@ static void SuspendedSwingingRCTrackSBendRight(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1562,10 +1562,10 @@ static void SuspendedSwingingRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1617,7 +1617,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1695,10 +1695,10 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1755,7 +1755,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -1799,10 +1799,10 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -1850,7 +1850,7 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_INVERTED_4);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
break;
|
||||
@@ -1894,10 +1894,10 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_INVERTED_5);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::InvertedSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 88);
|
||||
@@ -1950,7 +1950,7 @@ static void SuspendedSwingingRCTrackBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 44, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -1998,7 +1998,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2148,10 +2148,10 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2203,7 +2203,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2352,10 +2352,10 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height + 16, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2407,7 +2407,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2557,10 +2557,10 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2612,7 +2612,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -2761,10 +2761,10 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2816,7 +2816,7 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -3001,7 +3001,7 @@ static void SuspendedSwingingRCTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -4790,7 +4790,7 @@ static void SuspendedSwingingRCTrackBlockBrakes(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 44, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
|
||||
@@ -239,12 +239,12 @@ static void PaintVirginiaReelTrackFlat(
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 2, 0, height }, { 27, 32, 2 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 2, height }, { 32, 27, 2 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -288,25 +288,25 @@ static void PaintVirginiaReelTrack25DegUp(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ static void PaintVirginiaReelTrackFlatTo25DegUp(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 2, 0, height }, { 27, 32, 2 } });
|
||||
@@ -344,7 +344,7 @@ static void PaintVirginiaReelTrackFlatTo25DegUp(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
ps = PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 2, height }, { 32, 27, 2 } });
|
||||
@@ -353,7 +353,7 @@ static void PaintVirginiaReelTrackFlatTo25DegUp(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 2, 0, height }, { 27, 32, 2 } });
|
||||
@@ -361,7 +361,7 @@ static void PaintVirginiaReelTrackFlatTo25DegUp(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -403,25 +403,25 @@ static void PaintVirginiaReelTrack25DegUpToFlat(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 2:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 3:
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -468,7 +468,7 @@ static void PaintVirginiaReelStation(
|
||||
imageId = session.TrackColours.WithIndex(SPR_VIRGINIA_REEL_FLAT_SW_NE);
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 20, 2 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else if (direction == 1 || direction == 3)
|
||||
{
|
||||
@@ -478,7 +478,7 @@ static void PaintVirginiaReelStation(
|
||||
imageId = session.TrackColours.WithIndex(SPR_VIRGINIA_REEL_FLAT_NW_SE);
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 2 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -497,7 +497,7 @@ static void PaintVirginiaReelTrackLeftQuarterTurn3Tiles(
|
||||
TrackPaintUtilLeftQuarterTurn3TilesPaint(
|
||||
session, 2, height, direction, trackSequence, session.TrackColours,
|
||||
virginia_reel_track_pieces_flat_quarter_turn_3_tiles);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_SQUARE_FLAT, direction, trackSequence);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TunnelType::SquareFlat, direction, trackSequence);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -550,19 +550,19 @@ static void PaintVirginiaReelTrackLeftQuarterTurn1Tile(
|
||||
{
|
||||
case 0:
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::Corner3, height, session.SupportColours);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::Corner0, height, session.SupportColours);
|
||||
break;
|
||||
case 2:
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::Corner1, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
WoodenASupportsPaintSetup(session, kSupportType, WoodenSupportSubType::Corner2, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ static void WildMouseTrackFlat(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, -1, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -222,7 +222,7 @@ static void WildMouseTrackStation(
|
||||
}
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -248,11 +248,11 @@ static void WildMouseTrack25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -293,11 +293,11 @@ static void WildMouseTrack60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -324,11 +324,11 @@ static void WildMouseTrackFlatTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -370,11 +370,11 @@ static void WildMouseTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -416,11 +416,11 @@ static void WildMouseTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -447,11 +447,11 @@ static void WildMouseTrack25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -533,7 +533,7 @@ static void WildMouseTrackRightQuarterTurn3(
|
||||
};
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint3(session, height, direction, trackSequence, session.TrackColours, imageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -596,7 +596,8 @@ static void WildMouseTrackRightQuarterTurn325DegDown(
|
||||
session, session.TrackColours.WithIndex(sbb->sprite_id), { offset.x, offset.y, height + offset.z }, sbb->bb_size);
|
||||
}
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(session, height, direction, trackSequence, TUNNEL_2, TUNNEL_1);
|
||||
TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
|
||||
session, height, direction, trackSequence, TunnelType::StandardSlopeEnd, TunnelType::StandardSlopeStart);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -664,7 +665,8 @@ static void WildMouseTrackRightQuarterTurn325DegUp(
|
||||
sbb->bb_size);
|
||||
}
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(session, height, direction, trackSequence, TUNNEL_1, TUNNEL_2);
|
||||
TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
|
||||
session, height, direction, trackSequence, TunnelType::StandardSlopeStart, TunnelType::StandardSlopeEnd);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -745,7 +747,8 @@ static void WildMouseTrackLeftQuarterTurn1(
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, -1, height, session.SupportColours);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, 0, TunnelType::StandardFlat, 0, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
@@ -800,11 +803,11 @@ static void WildMouseTrackFlatTo60DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -853,11 +856,11 @@ static void WildMouseTrack60DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -890,7 +893,7 @@ static void WildMouseTrackBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -913,7 +916,7 @@ static void WildMouseTrackRotationControlToggle(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -930,7 +933,7 @@ static void WildMouseTrackBlockBrakes(
|
||||
{
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -508,7 +508,7 @@ static void WoodenRCTrackFlat(
|
||||
{ { 0, 3, height }, { 32, 25, 2 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -542,7 +542,7 @@ static void WoodenRCTrackStation(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -624,11 +624,11 @@ static void WoodenRCTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -692,11 +692,11 @@ static void WoodenRCTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -780,11 +780,11 @@ static void WoodenRCTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -893,11 +893,11 @@ static void WoodenRCTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1007,11 +1007,11 @@ static void WoodenRCTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1095,11 +1095,11 @@ static void WoodenRCTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1466,7 +1466,7 @@ static void WoodenRCTrackRightQuarterTurn5(
|
||||
|
||||
WoodenRCTrackPaintBb<isClassic>(session, &imageIds[0][direction][trackSequence], height);
|
||||
WoodenRCTrackPaintBb<isClassic>(session, &imageIds[1][direction][trackSequence], height);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
if (supportType[direction][trackSequence] != WoodenSupportSubType::Null)
|
||||
{
|
||||
@@ -1562,7 +1562,7 @@ static void WoodenRCTrackFlatToLeftBank(
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1611,7 +1611,7 @@ static void WoodenRCTrackFlatToRightBank(
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -1940,7 +1940,7 @@ static void WoodenRCTrackBankedRightQuarterTurn5(
|
||||
|
||||
WoodenRCTrackPaintBb<isClassic>(session, &imageIds[0][direction][trackSequence], height);
|
||||
WoodenRCTrackPaintBb<isClassic>(session, &imageIds[1][direction][trackSequence], height);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
if (supportType[direction][trackSequence] != WoodenSupportSubType::Null)
|
||||
{
|
||||
@@ -2039,11 +2039,11 @@ static void WoodenRCTrackLeftBankTo25DegUp(
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2096,11 +2096,11 @@ static void WoodenRCTrackRightBankTo25DegUp(
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -2153,11 +2153,11 @@ static void WoodenRCTrack25DegUpToLeftBank(
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -2210,11 +2210,11 @@ static void WoodenRCTrack25DegUpToRightBank(
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -2274,7 +2274,7 @@ static void WoodenRCTrackLeftBank(
|
||||
{ { 0, 3, height }, { 32, 25, 2 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -2352,7 +2352,7 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -2640,10 +2640,10 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -2716,7 +2716,7 @@ static void WoodenRCTrackRightQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -3003,10 +3003,10 @@ static void WoodenRCTrackRightQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -3101,7 +3101,7 @@ static void WoodenRCTrackSBendLeft(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -3297,10 +3297,10 @@ static void WoodenRCTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -3375,7 +3375,7 @@ static void WoodenRCTrackSBendRight(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -3571,10 +3571,10 @@ static void WoodenRCTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -3615,7 +3615,7 @@ static void WoodenRCTrackLeftVerticalLoop(
|
||||
session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -3870,10 +3870,10 @@ static void WoodenRCTrackLeftVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -3921,7 +3921,7 @@ static void WoodenRCTrackRightVerticalLoop(
|
||||
session, MetalSupportType::Boxed, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
break;
|
||||
@@ -4120,10 +4120,10 @@ static void WoodenRCTrackRightVerticalLoop(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -4199,7 +4199,7 @@ static void WoodenRCTrackLeftQuarterTurn3(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -4324,10 +4324,10 @@ static void WoodenRCTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -4418,7 +4418,7 @@ static void WoodenRCTrackLeftQuarterTurn3Bank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -4555,10 +4555,10 @@ static void WoodenRCTrackLeftQuarterTurn3Bank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -4643,7 +4643,7 @@ static void WoodenRCTrackLeftQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -4727,10 +4727,10 @@ static void WoodenRCTrackLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -4805,7 +4805,7 @@ static void WoodenRCTrackRightQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -4889,10 +4889,10 @@ static void WoodenRCTrackRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -4993,7 +4993,7 @@ static void WoodenRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5164,10 +5164,10 @@ static void WoodenRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5253,10 +5253,10 @@ static void WoodenRCTrackLeftHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5427,7 +5427,7 @@ static void WoodenRCTrackLeftHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5522,7 +5522,7 @@ static void WoodenRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -5693,10 +5693,10 @@ static void WoodenRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5782,10 +5782,10 @@ static void WoodenRCTrackRightHalfBankedHelixUpSmall(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5955,7 +5955,7 @@ static void WoodenRCTrackRightHalfBankedHelixUpSmall(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6075,7 +6075,7 @@ static void WoodenRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6378,10 +6378,10 @@ static void WoodenRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6461,10 +6461,10 @@ static void WoodenRCTrackLeftHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -6764,7 +6764,7 @@ static void WoodenRCTrackLeftHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -6853,7 +6853,7 @@ static void WoodenRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7153,10 +7153,10 @@ static void WoodenRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7236,10 +7236,10 @@ static void WoodenRCTrackRightHalfBankedHelixUpLarge(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7542,7 +7542,7 @@ static void WoodenRCTrackRightHalfBankedHelixUpLarge(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -7661,7 +7661,8 @@ static void WoodenRCTrackLeftQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::SquareSlopeStart, +56, TunnelType::SquareSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -7731,7 +7732,8 @@ static void WoodenRCTrackRightQuarterTurn160DegUp(
|
||||
{ { 2, 2, height + 99 }, { 28, 28, 1 } });
|
||||
break;
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
|
||||
TrackPaintUtilRightQuarterTurn1TileTunnel(
|
||||
session, direction, height, -8, TunnelType::SquareSlopeStart, +56, TunnelType::SquareSlopeEnd);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
}
|
||||
@@ -7772,7 +7774,7 @@ static void WoodenRCTrackBrakes(
|
||||
{ { 0, 3, height }, { 32, 25, 2 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -7844,11 +7846,11 @@ static void WoodenRCTrack25DegUpLeftBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -7921,11 +7923,11 @@ static void WoodenRCTrack25DegUpRightBanked(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -7975,7 +7977,7 @@ static void WoodenRCTrackOnRidePhoto(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
TrackPaintUtilOnridePhotoSmallPaint(session, direction, height + 16, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -8112,7 +8114,7 @@ static void WoodenRCTrackWaterSplash(
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -8487,7 +8489,7 @@ static void WoodenRCTrackWaterSplash(
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 16, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -8560,7 +8562,7 @@ static void WoodenRCTrackLeftEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -8826,7 +8828,7 @@ static void WoodenRCTrackRightEighthToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -9112,7 +9114,7 @@ static void WoodenRCTrackLeftEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -9378,7 +9380,7 @@ static void WoodenRCTrackRightEighthBankToDiag(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -13338,7 +13340,7 @@ static void WoodenRCTrackLeftBankToLeftQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -13422,10 +13424,10 @@ static void WoodenRCTrackLeftBankToLeftQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -13500,7 +13502,7 @@ static void WoodenRCTrackRightBankToRightQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -13584,10 +13586,10 @@ static void WoodenRCTrackRightBankToRightQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -13668,7 +13670,7 @@ static void WoodenRCTrackLeftQuarterTurn325DegDownToLeftBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -13746,10 +13748,10 @@ static void WoodenRCTrackLeftQuarterTurn325DegDownToLeftBank(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -13830,7 +13832,7 @@ static void WoodenRCTrackRightQuarterTurn325DegDownToRightBank(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
@@ -13908,10 +13910,10 @@ static void WoodenRCTrackRightQuarterTurn325DegDownToRightBank(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -13933,7 +13935,7 @@ static void WoodenRCTrackBlockBrakes(
|
||||
{ { 0, 3, height }, { 32, 25, 2 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -14004,7 +14006,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -14088,10 +14090,10 @@ static void WoodenRCTrackLeftBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -14166,7 +14168,7 @@ static void WoodenRCTrackRightBankedQuarterTurn325DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -14250,10 +14252,10 @@ static void WoodenRCTrackRightBankedQuarterTurn325DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -14348,7 +14350,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -14636,10 +14638,10 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -14712,7 +14714,7 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -14998,10 +15000,10 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -15087,11 +15089,11 @@ static void WoodenRCTrack25DegUpToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -15152,11 +15154,11 @@ static void WoodenRCTrack25DegUpToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -15217,11 +15219,11 @@ static void WoodenRCTrackLeftBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -15282,11 +15284,11 @@ static void WoodenRCTrackRightBanked25DegUpTo25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -15397,11 +15399,11 @@ static void WoodenRCTrackLeftBankedFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -15474,11 +15476,11 @@ static void WoodenRCTrackRightBankedFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -15551,11 +15553,11 @@ static void WoodenRCTrackLeftBanked25DegUpToLeftBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -15628,11 +15630,11 @@ static void WoodenRCTrackRightBanked25DegUpToRightBankedFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -15745,11 +15747,11 @@ static void WoodenRCTrackFlatToLeftBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -15822,11 +15824,11 @@ static void WoodenRCTrackFlatToRightBanked25DegUp(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -15899,11 +15901,11 @@ static void WoodenRCTrackLeftBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -15976,11 +15978,11 @@ static void WoodenRCTrackRightBanked25DegUpToFlat(
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -16045,7 +16047,7 @@ static void WoodenRCTrackBooster(
|
||||
{ { 0, 3, height }, { 32, 25, 2 } });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ static void WoodenWildMouseTrackFlat(
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
PaintUtilRotateSegments(
|
||||
@@ -174,7 +174,7 @@ static void WoodenWildMouseTrackStation(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -209,11 +209,11 @@ static void WoodenWildMouseTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -258,11 +258,11 @@ static void WoodenWildMouseTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -299,11 +299,11 @@ static void WoodenWildMouseTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -352,11 +352,11 @@ static void WoodenWildMouseTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -404,11 +404,11 @@ static void WoodenWildMouseTrack60DegTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -445,11 +445,11 @@ static void WoodenWildMouseTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -532,7 +532,7 @@ static void WoodenWildMouseTrackRightQuarterTurn3(
|
||||
};
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint4(session, height, direction, trackSequence, session.TrackColours, imageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -598,7 +598,8 @@ static void WoodenWildMouseTrackLeftQuarterTurn1(
|
||||
}
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::Corner3, direction, height, session.SupportColours);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, 0, TunnelType::StandardFlat, 0, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -652,11 +653,11 @@ static void WoodenWildMouseTrackFlatTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -704,11 +705,11 @@ static void WoodenWildMouseTrack60DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -179,11 +179,11 @@ static void PaintCarRideTrackFlat(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
@@ -214,16 +214,16 @@ static void PaintCarRideTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -255,16 +255,16 @@ static void PaintCarRideTrackFlatTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -296,16 +296,16 @@ static void PaintCarRideTrack25DegUpToFlat(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_12);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_12);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -372,11 +372,11 @@ static void PaintCarRideStation(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
@@ -395,7 +395,7 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles(
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint(
|
||||
session, 3, height, direction, trackSequence, session.TrackColours, CarRideTrackPiecesQuarterTurn3Tiles,
|
||||
defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -463,7 +463,8 @@ static void PaintCarRideTrackLeftQuarterTurn1Tile(
|
||||
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, 0, TunnelType::StandardFlat, 0, TunnelType::StandardFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -497,11 +498,11 @@ static void PaintCarRideTrackSpinningTunnel(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -538,16 +539,16 @@ static void PaintCarRideTrack60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 56, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 56, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -597,16 +598,16 @@ static void PaintCarRideTrack25DegUpTo60DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -656,16 +657,16 @@ static void PaintCarRideTrack60DegUpTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 24, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -724,11 +725,11 @@ static void PaintCarRideTrackLogBumps(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
|
||||
@@ -145,27 +145,27 @@ static constexpr uint32_t GhostTrainTrackPiecesBrakes[4] = {
|
||||
SprGhostTrainTrackBrakesNwSe,
|
||||
};
|
||||
|
||||
static constexpr uint8_t DoorOpeningOutwardsToImage[] = {
|
||||
TUNNEL_DOORS_2, // Closed
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_3, // Half open
|
||||
TUNNEL_DOORS_4, // Fully open
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
static constexpr TunnelType DoorOpeningOutwardsToImage[] = {
|
||||
TunnelType::Doors2, // Closed
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors3, // Half open
|
||||
TunnelType::Doors4, // Fully open
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors2, // Unused?
|
||||
};
|
||||
|
||||
static constexpr uint8_t DoorOpeningInwardsToImage[] = {
|
||||
TUNNEL_DOORS_2, // Closed
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_5, // Half open
|
||||
TUNNEL_DOORS_6, // Fully open
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
TUNNEL_DOORS_2, // Unused?
|
||||
static constexpr TunnelType DoorOpeningInwardsToImage[] = {
|
||||
TunnelType::Doors2, // Closed
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors5, // Half open
|
||||
TunnelType::Doors6, // Fully open
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors2, // Unused?
|
||||
TunnelType::Doors2, // Unused?
|
||||
};
|
||||
|
||||
static uint8_t GetTunnelDoorsImageStraightFlat(const TrackElement& trackElement, uint8_t direction)
|
||||
static TunnelType GetTunnelDoorsImageStraightFlat(const TrackElement& trackElement, uint8_t direction)
|
||||
{
|
||||
switch (direction)
|
||||
{
|
||||
@@ -178,7 +178,7 @@ static uint8_t GetTunnelDoorsImageStraightFlat(const TrackElement& trackElement,
|
||||
case 3:
|
||||
return DoorOpeningInwardsToImage[trackElement.GetDoorAState()];
|
||||
}
|
||||
return TUNNEL_DOORS_2;
|
||||
return TunnelType::Doors2;
|
||||
}
|
||||
|
||||
/** rct2: 0x00770BEC */
|
||||
@@ -225,16 +225,16 @@ static void PaintGhostTrainTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp(
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isBackwards = trackElement.GetTrackType() == TrackElemType::Down25ToFlat;
|
||||
uint8_t doorImage;
|
||||
TunnelType doorImage;
|
||||
if (!isBackwards)
|
||||
{
|
||||
doorImage = DoorOpeningInwardsToImage[trackElement.GetDoorAState()];
|
||||
@@ -279,10 +279,10 @@ static void PaintGhostTrainTrackFlatTo25DegUp(
|
||||
PaintUtilPushTunnelLeft(session, height, doorImage);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, doorImage);
|
||||
@@ -330,7 +330,7 @@ static void PaintGhostTrainTrack25DegUpToFlat(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, DoorOpeningOutwardsToImage[trackElement.GetDoorBState()]);
|
||||
@@ -339,7 +339,7 @@ static void PaintGhostTrainTrack25DegUpToFlat(
|
||||
PaintUtilPushTunnelLeft(session, height + 8, DoorOpeningOutwardsToImage[trackElement.GetDoorBState()]);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -362,7 +362,7 @@ static void PaintGhostTrainTrackFlatTo25DegDown(
|
||||
switch ((direction + 2) % 4)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, DoorOpeningInwardsToImage[trackElement.GetDoorAState()]);
|
||||
@@ -371,7 +371,7 @@ static void PaintGhostTrainTrackFlatTo25DegDown(
|
||||
PaintUtilPushTunnelLeft(session, height + 8, DoorOpeningInwardsToImage[trackElement.GetDoorAState()]);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -404,7 +404,7 @@ static void PaintGhostTrainStation(
|
||||
imageId = session.TrackColours.WithIndex(GhostTrainTrackPiecesFlat[direction]);
|
||||
PaintAddImageAsChildRotated(session, direction, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 20, 3 } });
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
|
||||
@@ -472,7 +472,7 @@ static void PaintGhostTrainTrackLeftQuarterTurn1Tile(
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isBackwards = trackElement.GetTrackType() == TrackElemType::RightQuarterTurn1Tile;
|
||||
uint8_t tunnelStartImage, tunnelEndImage;
|
||||
TunnelType tunnelStartImage, tunnelEndImage;
|
||||
if (!isBackwards)
|
||||
{
|
||||
tunnelStartImage = DoorOpeningInwardsToImage[trackElement.GetDoorAState()];
|
||||
|
||||
@@ -483,13 +483,13 @@ static void PaintMiniGolfTrackFlat(
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SprMiniGolfFlatNwSe);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 1 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SprMiniGolfFlatSwNe);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
@@ -548,16 +548,16 @@ static void PaintMiniGolfTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -590,16 +590,16 @@ static void PaintMiniGolfTrackFlatTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -632,16 +632,16 @@ static void PaintMiniGolfTrack25DegUpToFlat(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -705,7 +705,7 @@ static void PaintMiniGolfStation(
|
||||
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasSWFence, stationObj, height, stationColour);
|
||||
|
||||
// Was leftwards tunnel in game, seems odd
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -727,7 +727,7 @@ static void PaintMiniGolfStation(
|
||||
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height, stationColour);
|
||||
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasSEFence, stationObj, height, stationColour);
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -762,7 +762,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
if (!shouldDrawFence)
|
||||
break;
|
||||
|
||||
@@ -780,7 +780,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
|
||||
break;
|
||||
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
if (!shouldDrawFence)
|
||||
break;
|
||||
|
||||
@@ -789,8 +789,8 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
|
||||
break;
|
||||
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
if (!shouldDrawFence)
|
||||
break;
|
||||
|
||||
@@ -844,11 +844,11 @@ static void PaintMiniGolfHoleAb(
|
||||
|
||||
if ((direction == 0 && trackSequence == 0) || (direction == 2 && trackSequence == 1))
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
else if ((direction == 3 && trackSequence == 0) || (direction == 1 && trackSequence == 1))
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
|
||||
if (direction & 1)
|
||||
@@ -917,11 +917,11 @@ static void PaintMiniGolfHoleC(
|
||||
|
||||
if ((direction == 0 && trackSequence == 0) || (direction == 2 && trackSequence == 1))
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
else if ((direction == 3 && trackSequence == 0) || (direction == 1 && trackSequence == 1))
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
}
|
||||
|
||||
if (direction & 1)
|
||||
@@ -991,12 +991,12 @@ static void PaintMiniGolfHoleD(
|
||||
{
|
||||
case 0x00:
|
||||
case 0x12:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
|
||||
case 0x02:
|
||||
case 0x30:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1085,12 +1085,12 @@ static void PaintMiniGolfHoleE(
|
||||
{
|
||||
case (0 << 4 | 0):
|
||||
case (3 << 4 | 2):
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
|
||||
case (2 << 4 | 2):
|
||||
case (3 << 4 | 0):
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::PathAndMiniGolf);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ static void PaintMiniHelicoptersTrackStation(
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
@@ -66,13 +66,13 @@ static void PaintMiniHelicoptersTrackFlat(
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -102,22 +102,22 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp(
|
||||
case 0:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -146,22 +146,22 @@ static void PaintMiniHelicoptersTrack25DegUp(
|
||||
case 0:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::StandardSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -190,22 +190,22 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat(
|
||||
case 0:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
case 1:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_12);
|
||||
break;
|
||||
case 2:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_12);
|
||||
break;
|
||||
case 3:
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::StandardFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles(
|
||||
TrackPaintUtilLeftQuarterTurn3TilesPaint(
|
||||
session, 3, height, direction, trackSequence, session.TrackColours,
|
||||
kTrackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TunnelType::StandardFlat, direction, trackSequence);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -318,7 +318,8 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile(
|
||||
{
|
||||
TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
session, 1, height, 0, direction, session.TrackColours, kTrackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height, 0, TunnelType::StandardFlat, 0, TunnelType::StandardFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -355,7 +356,7 @@ static void PaintMiniHelicoptersTrackSpinningTunnel(
|
||||
PaintAddImageAsParentRotated(session, direction, underlay, { 0, 6, height - 2 }, { { 0, 6, height }, { 32, 20, 1 } });
|
||||
PaintAddImageAsChildRotated(session, direction, imageId, { 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
TrackPaintUtilSpinningTunnelPaint(session, 1, height, direction);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
||||
@@ -174,11 +174,11 @@ static void PaintMonorailCyclesTrackFlat(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
MetalASupportsPaintSetup(
|
||||
@@ -218,7 +218,7 @@ static void PaintMonorailCyclesStation(
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
@@ -233,7 +233,7 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles(
|
||||
{
|
||||
TrackPaintUtilLeftQuarterTurn3TilesPaint(
|
||||
session, 3, height, direction, trackSequence, session.TrackColours, MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TunnelType::StandardFlat, direction, trackSequence);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -367,22 +367,22 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -481,7 +481,7 @@ static void PaintMonorailCyclesTrackSBendLeft(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -502,7 +502,7 @@ static void PaintMonorailCyclesTrackSBendLeft(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -599,7 +599,7 @@ static void PaintMonorailCyclesTrackSBendRight(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -620,7 +620,7 @@ static void PaintMonorailCyclesTrackSBendRight(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
|
||||
@@ -73,7 +73,7 @@ static void PaintFacility(
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
|
||||
if (direction == 1 || direction == 2)
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
/* 0x00762D44 */
|
||||
|
||||
@@ -58,7 +58,7 @@ static void PaintShop(
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
|
||||
if (direction == 1 || direction == 2)
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION GetTrackPaintFunctionShop(int32_t trackType)
|
||||
|
||||
@@ -143,7 +143,7 @@ static void PaintGoKartsTrackFlat(
|
||||
imageId = session.TrackColours.WithIndex(SPR_GO_KARTS_FLAT_FRONT_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 29, height + 2 }, { 32, 1, 3 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -153,7 +153,7 @@ static void PaintGoKartsTrackFlat(
|
||||
imageId = session.TrackColours.WithIndex(SPR_GO_KARTS_FLAT_FRONT_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 29, 0, height + 2 }, { 1, 32, 3 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
@@ -200,16 +200,16 @@ static void PaintGoKartsTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -254,16 +254,16 @@ static void PaintGoKartsTrackFlatTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -309,16 +309,16 @@ static void PaintGoKartsTrack25DegUpToFlat(
|
||||
{
|
||||
case 0:
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -393,13 +393,13 @@ static void PaintGoKartsStation(
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 29, height + 2 }, { 32, 1, 3 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 29, 0, height + 2 }, { 1, 32, 3 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
@@ -514,14 +514,14 @@ static void PaintGoKartsTrackLeftQuarterTurn1Tile(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ static void ChairliftPaintStationNeSw(
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ static void ChairliftPaintStationSeNw(
|
||||
PaintAddImageAsParent(
|
||||
session, imageId, { 16, 30, height + 2 }, { { 16, 1, height + 2 }, { 1, 1, 7 } }); // bound offset x is wrong?
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -395,13 +395,13 @@ static void ChairliftPaintFlat(
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_FLAT_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 13, 0, height + 28 }, { 6, 32, 2 } });
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_FLAT_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 13, height + 28 }, { 32, 6, 2 } });
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -420,25 +420,25 @@ static void ChairliftPaint25DegUp(
|
||||
case 0:
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_UP_SW_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 13, height + 28 }, { 32, 6, 2 } });
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_UP_NW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 13, 0, height + 28 }, { 6, 32, 2 } });
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_UP_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 13, height + 28 }, { 32, 6, 2 } });
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = session.TrackColours.WithIndex(SPR_CHAIRLIFT_CABLE_UP_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 13, 0, height + 28 }, { 6, 32, 2 } });
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ static void ChairliftPaintFlatTo25DegUp(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20520);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -472,7 +472,7 @@ static void ChairliftPaintFlatTo25DegUp(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20521);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -482,7 +482,7 @@ static void ChairliftPaintFlatTo25DegUp(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20522);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -492,7 +492,7 @@ static void ChairliftPaintFlatTo25DegUp(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20523);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ static void ChairliftPaint25DegUpToFlat(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20524);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -527,7 +527,7 @@ static void ChairliftPaint25DegUpToFlat(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20525);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -537,7 +537,7 @@ static void ChairliftPaint25DegUpToFlat(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20526);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -547,7 +547,7 @@ static void ChairliftPaint25DegUpToFlat(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20527);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 14, 14, height + 1 }, { 4, 4, 25 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ static void ChairliftPaintLeftQuarterTurn1Tile(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20536);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 4, height }, { 2, 2, 27 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -623,7 +623,7 @@ static void ChairliftPaintLeftQuarterTurn1Tile(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20538);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 16, 28, height }, { 2, 2, 27 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -636,8 +636,8 @@ static void ChairliftPaintLeftQuarterTurn1Tile(
|
||||
imageId = session.SupportColours.WithIndex(SPR_20539);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 16, 28, height }, { 2, 2, 27 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -698,7 +698,7 @@ static void PaintMiniatureRailwayTrackFlat(
|
||||
}
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -720,7 +720,7 @@ static void PaintMiniatureRailwayStation(
|
||||
imageId = session.TrackColours.WithIndex(miniature_railway_track_pieces_flat_station[direction]);
|
||||
PaintAddImageAsChildRotated(session, direction, imageId, { 0, 6, height }, { { 0, 0, height }, { 32, 20, 2 } });
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation3(session, ride, direction, height + 2, height, trackElement);
|
||||
// covers shouldn't be offset by +2
|
||||
@@ -741,16 +741,16 @@ static void PaintMiniatureRailwayTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -774,16 +774,16 @@ static void PaintMiniatureRailwayTrackFlatTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -807,16 +807,16 @@ static void PaintMiniatureRailwayTrack25DegUpToFlat(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1031,22 +1031,22 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn5Tiles(
|
||||
}
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -1171,14 +1171,14 @@ static void PaintMiniatureRailwayTrackSBendLeft(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1282,14 +1282,14 @@ static void PaintMiniatureRailwayTrackSBendRight(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1407,7 +1407,7 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn3Tiles(
|
||||
PaintAddImageAsChild(
|
||||
session, imageId, { offset, height }, { boundsOffset + CoordsXYZ{ 0, 0, height }, { boundsLength, 3 } });
|
||||
}
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
switch (trackSequence)
|
||||
@@ -1596,11 +1596,11 @@ static void PaintMiniatureRailwayTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -1763,11 +1763,11 @@ static void PaintMiniatureRailwayTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -427,11 +427,11 @@ static void PaintMonorailTrackFlat(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -483,11 +483,11 @@ static void PaintMonorailStation(
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
@@ -517,16 +517,16 @@ static void PaintMonorailTrack25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -562,16 +562,16 @@ static void PaintMonorailTrackFlatTo25DegUp(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -607,16 +607,16 @@ static void PaintMonorailTrack25DegUpToFlat(
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -676,22 +676,22 @@ static void PaintMonorailTrackRightQuarterTurn5Tiles(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -768,7 +768,7 @@ static void PaintMonorailTrackSBendLeft(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -789,7 +789,7 @@ static void PaintMonorailTrackSBendLeft(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -864,7 +864,7 @@ static void PaintMonorailTrackSBendRight(
|
||||
{
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -885,7 +885,7 @@ static void PaintMonorailTrackSBendRight(
|
||||
{
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -938,7 +938,7 @@ static void PaintMonorailTrackRightQuarterTurn3Tiles(
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint(
|
||||
session, 3, height, direction, trackSequence, session.TrackColours, monorail_track_pieces_flat_quarter_turn_3_tiles,
|
||||
defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::SquareFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -1020,11 +1020,11 @@ static void PaintMonorailTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
@@ -1096,11 +1096,11 @@ static void PaintMonorailTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = 0;
|
||||
|
||||
@@ -52,7 +52,7 @@ static void SuspendedMonorailTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height + 42, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ static void SuspendedMonorailTrackStation(
|
||||
{ { 0, 6, height + 32 }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, kSupportType);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -139,11 +139,11 @@ static void SuspendedMonorailTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
}
|
||||
@@ -203,11 +203,11 @@ static void SuspendedMonorailTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64);
|
||||
}
|
||||
@@ -267,11 +267,11 @@ static void SuspendedMonorailTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::InvertedSquare);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_15);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_15);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
}
|
||||
@@ -344,7 +344,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn5(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -489,10 +489,10 @@ static void SuspendedMonorailTrackLeftQuarterTurn5(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -553,7 +553,7 @@ static void SuspendedMonorailTrackSBendLeft(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -685,10 +685,10 @@ static void SuspendedMonorailTrackSBendLeft(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -740,7 +740,7 @@ static void SuspendedMonorailTrackSBendRight(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -872,10 +872,10 @@ static void SuspendedMonorailTrackSBendRight(
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
case 2:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -927,7 +927,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn3(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1005,10 +1005,10 @@ static void SuspendedMonorailTrackLeftQuarterTurn3(
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
case 3:
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedSquare);
|
||||
break;
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -1063,7 +1063,7 @@ static void SuspendedMonorailTrackLeftEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
@@ -1242,7 +1242,7 @@ static void SuspendedMonorailTrackRightEighthToDiag(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
break;
|
||||
|
||||
@@ -76,13 +76,13 @@ static void PaintBoatHireStation(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
TrackPaintUtilDrawPier(
|
||||
session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
TrackPaintUtilDrawPier(
|
||||
session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ static void DinghySlideTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -271,7 +271,7 @@ static void DinghySlideTrackStation(
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -310,11 +310,11 @@ static void DinghySlideTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -349,11 +349,11 @@ static void DinghySlideTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -397,11 +397,11 @@ static void DinghySlideTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -436,11 +436,11 @@ static void DinghySlideTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -475,11 +475,11 @@ static void DinghySlideTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -523,11 +523,11 @@ static void DinghySlideTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -651,19 +651,19 @@ static void DinghySlideTrackRightQuarterTurn5(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -846,14 +846,14 @@ static void DinghySlideTrackSBendLeft(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -971,14 +971,14 @@ static void DinghySlideTrackSBendRight(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1036,7 +1036,7 @@ static void DinghySlideTrackRightQuarterTurn3(
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint3(session, height, direction, trackSequence, session.TrackColours, imageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint3(session, height, direction, trackSequence, session.TrackColours, frontImageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
|
||||
@@ -195,7 +195,7 @@ static void DinghySlideTrackCoveredFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
@@ -229,11 +229,11 @@ static void DinghySlideTrackCovered25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -268,11 +268,11 @@ static void DinghySlideTrackCovered60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -307,11 +307,11 @@ static void DinghySlideTrackCoveredFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -346,11 +346,11 @@ static void DinghySlideTrackCovered25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -385,11 +385,11 @@ static void DinghySlideTrackCovered60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -424,11 +424,11 @@ static void DinghySlideTrackCovered25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -552,19 +552,19 @@ static void DinghySlideTrackCoveredRightQuarterTurn5(
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 0 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 1 && trackSequence == 6)
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
switch (trackSequence)
|
||||
@@ -740,14 +740,14 @@ static void DinghySlideTrackCoveredSBendLeft(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -865,14 +865,14 @@ static void DinghySlideTrackCoveredSBendRight(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -930,7 +930,7 @@ static void DinghySlideTrackCoveredRightQuarterTurn3(
|
||||
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint3(session, height, direction, trackSequence, session.TrackColours, imageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesPaint3(session, height, direction, trackSequence, session.TrackColours, frontImageIds);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
|
||||
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TunnelType::StandardFlat);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
|
||||
@@ -181,7 +181,7 @@ static void PaintLogFlumeTrackFlat(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -208,7 +208,7 @@ static void PaintLogFlumeTrackStation(
|
||||
TrackPaintUtilDrawStation3(session, ride, direction, height + 2, height, trackElement);
|
||||
// Covers shouldn't be offset by +2
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -238,11 +238,11 @@ static void PaintLogFlumeTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -272,11 +272,11 @@ static void PaintLogFlumeTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -306,11 +306,11 @@ static void PaintLogFlumeTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -340,11 +340,11 @@ static void PaintLogFlumeTrack25DegDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -374,11 +374,11 @@ static void PaintLogFlumeTrackFlatTo25DegDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_12);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_12);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -408,11 +408,11 @@ static void PaintLogFlumeTrack25DegDownToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -527,14 +527,14 @@ static void PaintLogFlumeTrackSBendLeft(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -652,14 +652,14 @@ static void PaintLogFlumeTrackSBendRight(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -714,13 +714,13 @@ static void PaintLogFlumeTrackLeftQuarterTurn3Tiles(
|
||||
case 0:
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (direction == 2 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -810,13 +810,13 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles(
|
||||
case 0:
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if (direction == 0 || direction == 1)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -872,7 +872,7 @@ static void PaintLogFlumeTrackOnRidePhoto(
|
||||
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
@@ -896,7 +896,7 @@ static void PaintLogFlumeTrackReverser(
|
||||
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
}
|
||||
@@ -927,7 +927,7 @@ static void LogFlumeTrack25Down60(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::_14);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -936,7 +936,7 @@ static void LogFlumeTrack25Down60(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height + 12, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_2);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::StandardSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -966,7 +966,7 @@ static void LogFlumeTrack60Down(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -975,7 +975,7 @@ static void LogFlumeTrack60Down(
|
||||
MetalASupportsPaintSetup(session, kSupportType, MetalSupportPlace::Centre, 8, height + 12, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -1000,7 +1000,7 @@ static void LogFlumeTrack60Down25(
|
||||
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeStart);
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
@@ -1009,7 +1009,7 @@ static void LogFlumeTrack60Down25(
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareFlat);
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
|
||||
@@ -306,11 +306,11 @@ static void PaintRiverRapidsTrackFlat(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -344,7 +344,7 @@ static void PaintRiverRapidsTrack25Deg(PaintSession& session, uint8_t direction,
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -358,7 +358,7 @@ static void PaintRiverRapidsTrack25Deg(PaintSession& session, uint8_t direction,
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -372,7 +372,7 @@ static void PaintRiverRapidsTrack25Deg(PaintSession& session, uint8_t direction,
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -385,7 +385,7 @@ static void PaintRiverRapidsTrack25Deg(PaintSession& session, uint8_t direction,
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25Deg);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareSlopeStart);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ static void PaintRiverRapidsTrack25DegToFlatA(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -425,7 +425,7 @@ static void PaintRiverRapidsTrack25DegToFlatA(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRight(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -440,7 +440,7 @@ static void PaintRiverRapidsTrack25DegToFlatA(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelLeft(session, height + 8, TunnelType::_14);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -453,7 +453,7 @@ static void PaintRiverRapidsTrack25DegToFlatA(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::Up25DegToFlat);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height - 8, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ static void PaintRiverRapidsTrack25DegToFlatB(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -493,7 +493,7 @@ static void PaintRiverRapidsTrack25DegToFlatB(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -507,7 +507,7 @@ static void PaintRiverRapidsTrack25DegToFlatB(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareSlopeEnd);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -520,7 +520,7 @@ static void PaintRiverRapidsTrack25DegToFlatB(
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, kSupportType, WoodenSupportSubType::NeSw, direction, height, session.SupportColours,
|
||||
WoodenSupportTransitionType::FlatToUp25Deg);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -591,7 +591,7 @@ static void PaintRiverRapidsTrackLeftQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SW_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 27, height }, { 2, 1, 7 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -612,7 +612,7 @@ static void PaintRiverRapidsTrackLeftQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_NE_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 10, 10, height }, { 1, 2, 5 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -622,8 +622,8 @@ static void PaintRiverRapidsTrackLeftQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 28, height }, { 1, 1, 7 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -649,8 +649,8 @@ static void PaintRiverRapidsTrackRightQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SW_SE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 28, height + 2 }, { 1, 1, 7 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@@ -660,7 +660,7 @@ static void PaintRiverRapidsTrackRightQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SE_NE);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 28, 27, height }, { 2, 1, 7 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -681,7 +681,7 @@ static void PaintRiverRapidsTrackRightQuarterTurn1Tile(
|
||||
imageId = session.TrackColours.WithIndex(SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_NW_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 27, 2, height }, { 1, 28, 7 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -751,11 +751,11 @@ static void PaintRiverRapidsTrackWaterfall(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_INVERTED_9);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::InvertedSquare);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -793,11 +793,11 @@ static void PaintRiverRapidsTrackRapids(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -863,11 +863,11 @@ static void PaintRiverRapidsTrackWhirlpool(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -494,11 +494,11 @@ static void PaintSplashBoatsTrack25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -521,11 +521,11 @@ static void PaintSplashBoatsTrack60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 56, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104);
|
||||
@@ -547,11 +547,11 @@ static void PaintSplashBoatsTrackFlatTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -573,11 +573,11 @@ static void PaintSplashBoatsTrack25DegUpToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -600,11 +600,11 @@ static void PaintSplashBoatsTrack25DegUpTo60DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -627,11 +627,11 @@ static void PaintSplashBoatsTrack60DegUpTo25DegUp(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 24, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72);
|
||||
@@ -653,11 +653,11 @@ static void PaintSplashBoatsTrack25DegDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareSlopeStart);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56);
|
||||
@@ -686,11 +686,11 @@ static void PaintSplashBoatsTrackFlatTo25DegDown(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TUNNEL_14);
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::_14);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 40);
|
||||
@@ -726,11 +726,11 @@ static void PaintSplashBoatsTrack25DegDownToFlat(
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_8);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareSlopeEnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
@@ -770,11 +770,11 @@ static void PaintSplashBoatsTrackFlat(
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -810,7 +810,7 @@ static void PaintSplashBoatsStation(
|
||||
|
||||
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 7, trackElement);
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -933,13 +933,13 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles(
|
||||
case 0:
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (direction == 2 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::SquareFlat);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1062,13 +1062,13 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles(
|
||||
case 0:
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (direction == 0 || direction == 1)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::SquareFlat);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1172,14 +1172,14 @@ static void PaintSplashBoatsTrackSBendLeft(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1282,14 +1282,14 @@ static void PaintSplashBoatsTrackSBendRight(
|
||||
{
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
if (direction == 1 || direction == 2)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1323,7 +1323,7 @@ static void PaintSplashBoatsTrackOnRidePhoto(
|
||||
PaintSplashBoatsTrackFlat(session, ride, trackSequence, direction, height, trackElement);
|
||||
|
||||
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ static void SubmarineRidePaintTrackStation(
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { { 6, 0, heightLower }, { 20, 32, 3 } });
|
||||
|
||||
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelRight(session, height, TunnelType::SquareFlat);
|
||||
TrackPaintUtilDrawPier(
|
||||
session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation);
|
||||
}
|
||||
@@ -91,7 +91,7 @@ static void SubmarineRidePaintTrackStation(
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { { 0, 6, heightLower }, { 32, 20, 3 } });
|
||||
|
||||
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
|
||||
PaintUtilPushTunnelLeft(session, height, TunnelType::SquareFlat);
|
||||
TrackPaintUtilDrawPier(
|
||||
session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation);
|
||||
}
|
||||
@@ -111,13 +111,13 @@ static void SubmarineRidePaintTrackFlat(
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { { 6, 0, heightLower }, { 20, 32, 3 } });
|
||||
PaintUtilPushTunnelRight(session, heightLower, TUNNEL_0);
|
||||
PaintUtilPushTunnelRight(session, heightLower, TunnelType::StandardFlat);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageId = session.TrackColours.WithIndex(SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { { 0, 6, heightLower }, { 32, 20, 3 } });
|
||||
PaintUtilPushTunnelLeft(session, heightLower, TUNNEL_0);
|
||||
PaintUtilPushTunnelLeft(session, heightLower, TunnelType::StandardFlat);
|
||||
}
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
@@ -142,7 +142,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles(
|
||||
TrackPaintUtilLeftQuarterTurn3TilesPaint(
|
||||
session, 3, height - 16, direction, trackSequence, session.TrackColours,
|
||||
kTrackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height - 16, TUNNEL_0, direction, trackSequence);
|
||||
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height - 16, TunnelType::StandardFlat, direction, trackSequence);
|
||||
|
||||
switch (trackSequence)
|
||||
{
|
||||
@@ -203,7 +203,8 @@ static void SubmarineRidePaintTrackLeftQuarterTurn1Tile(
|
||||
{
|
||||
TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
session, 1, height - 16, 0, direction, session.TrackColours, kTrackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height - 16, 0, TUNNEL_0, 0, TUNNEL_0);
|
||||
TrackPaintUtilLeftQuarterTurn1TileTunnel(
|
||||
session, direction, height - 16, 0, TunnelType::StandardFlat, 0, TunnelType::StandardFlat);
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
session,
|
||||
|
||||
Reference in new issue
Block a user