diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj
index 1f942f678b..bb7391dba4 100644
--- a/src/openrct2/libopenrct2.vcxproj
+++ b/src/openrct2/libopenrct2.vcxproj
@@ -358,7 +358,8 @@
-
+
+
@@ -854,7 +855,8 @@
-
+
+
diff --git a/src/openrct2/paint/support/Generic.h b/src/openrct2/paint/support/Generic.h
new file mode 100644
index 0000000000..ef1426e49c
--- /dev/null
+++ b/src/openrct2/paint/support/Generic.h
@@ -0,0 +1,15 @@
+/*****************************************************************************
+ * 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
+
+enum
+{
+ SUPPORTS_SLOPE_5 = 1 << 5
+};
diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp
new file mode 100644
index 0000000000..b9b15ab2c6
--- /dev/null
+++ b/src/openrct2/paint/support/MetalSupports.cpp
@@ -0,0 +1,756 @@
+/*****************************************************************************
+ * 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.
+ *****************************************************************************/
+
+#include "MetalSupports.h"
+
+#include "../../drawing/Drawing.h"
+#include "../../interface/Viewport.h"
+#include "../../util/Util.h"
+#include "../../world/Surface.h"
+#include "../Paint.SessionFlags.h"
+#include "../Paint.h"
+#include "Generic.h"
+
+/** rct2: 0x0097AF20, 0x0097AF21 */
+// clang-format off
+static constexpr CoordsXY SupportBoundBoxes[] = {
+ { 4, 4 },
+ { 28, 4 },
+ { 4, 28 },
+ { 28, 28 },
+ { 16, 16 },
+ { 16, 4 },
+ { 4, 16 },
+ { 28, 16 },
+ { 16, 28 },
+};
+
+/** rct2: 0x0097AF32 */
+static constexpr uint8_t _97AF32[] = {
+ 5, 2, 5, 2, 5, 2, 5, 2,
+ 7, 1, 7, 1, 7, 1, 7, 1,
+ 6, 3, 6, 3, 6, 3, 6, 3,
+ 8, 0, 8, 0, 8, 0, 8, 0,
+ 5, 3, 6, 0, 8, 1, 7, 2,
+ 1, 2, 1, 2, 1, 2, 1, 2,
+ 0, 3, 0, 3, 0, 3, 0, 3,
+ 3, 1, 3, 1, 3, 1, 3, 1,
+ 2, 0, 2, 0, 2, 0, 2, 0,
+
+ 6, 1, 6, 1, 6, 1, 6, 1,
+ 5, 0, 5, 0, 5, 0, 5, 0,
+ 8, 2, 8, 2, 8, 2, 8, 2,
+ 7, 3, 7, 3, 7, 3, 7, 3,
+ 6, 0, 8, 1, 7, 2, 5, 3,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 2, 1, 2, 1, 2, 1, 2, 1,
+ 1, 3, 1, 3, 1, 3, 1, 3,
+ 3, 2, 3, 2, 3, 2, 3, 2,
+
+ 1, 6, 1, 6, 1, 6, 1, 6,
+ 3, 5, 3, 5, 3, 5, 3, 5,
+ 0, 7, 0, 7, 0, 7, 0, 7,
+ 2, 4, 2, 4, 2, 4, 2, 4,
+ 8, 1, 7, 2, 5, 3, 6, 0,
+ 4, 1, 4, 1, 4, 1, 4, 1,
+ 4, 2, 4, 2, 4, 2, 4, 2,
+ 4, 0, 4, 0, 4, 0, 4, 0,
+ 4, 3, 4, 3, 4, 3, 4, 3,
+
+ 2, 5, 2, 5, 2, 5, 2, 5,
+ 0, 4, 0, 4, 0, 4, 0, 4,
+ 3, 6, 3, 6, 3, 6, 3, 6,
+ 1, 7, 1, 7, 1, 7, 1, 7,
+ 7, 2, 5, 3, 6, 0, 8, 1,
+ 8, 5, 8, 5, 8, 5, 8, 5,
+ 7, 6, 7, 6, 7, 6, 7, 6,
+ 6, 4, 6, 4, 6, 4, 6, 4,
+ 5, 7, 5, 7, 5, 7, 5, 7,
+};
+
+/** rct2: 0x0097B052, 0x0097B053 */
+static constexpr CoordsXY Loc97B052[] = {
+ { -15, -1 },
+ { 0, -2 },
+ { -2, -1 },
+ { -1, -15 },
+ { -26, -1 },
+ { 0, -2 },
+ { -2, -1 },
+ { -1, -26 },
+};
+
+/** rct2: 0x0097B062, 0x0097B063 */
+static constexpr CoordsXY _97B062[] = {
+ { 18, 3 },
+ { 3, 18 },
+ { 18, 3 },
+ { 3, 18 },
+ { 32, 3 },
+ { 3, 32 },
+ { 32, 3 },
+ { 3, 32 }
+};
+
+/** rct2: 0x0097B072 */
+static constexpr uint32_t _metalSupportTypeToCrossbeamImages[][8] = {
+ { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Tubes
+ { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Fork
+ { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::ForkAlt
+ { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Boxed
+ { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Stick
+ { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::StickAlt
+ { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::ThickCentred
+ { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::Thick
+ { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAlt
+ { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAltCentred
+ { 3378, 3379, 3378, 3379, 3380, 3381, 3380, 3381 }, // MetalSupportType::Truss
+ { 3386, 3387, 3386, 3387, 3388, 3389, 3388, 3389 }, // MetalSupportType::TubesInverted
+ { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::BoxedCoated
+};
+
+/** rct2: 0x0097B142 */
+static constexpr uint8_t supportTypeToHeight[] = {
+ 6, // MetalSupportType::Tubes
+ 3, // MetalSupportType::Fork
+ 3, // MetalSupportType::ForkAlt
+ 6, // MetalSupportType::Boxed
+ 3, // MetalSupportType::Stick
+ 3, // MetalSupportType::StickAlt
+ 6, // MetalSupportType::ThickCentred
+ 6, // MetalSupportType::Thick
+ 6, // MetalSupportType::ThickAlt
+ 6, // MetalSupportType::ThickAltCentred
+ 4, // MetalSupportType::Truss
+ 3, // MetalSupportType::TubesInverted
+ 6, // MetalSupportType::BoxedCoated
+};
+
+struct MetalSupportsImages {
+ uint16_t base_id;
+ uint16_t beam_id;
+};
+
+/** rct2: 0x0097B15C */
+static constexpr MetalSupportsImages _97B15C[] = {
+ { 3243, 3209 }, // MetalSupportType::Tubes
+ { 3279, 3262 }, // MetalSupportType::Fork
+ { 3298, 3262 }, // MetalSupportType::ForkAlt
+ { 3334, 3317 }, // MetalSupportType::Boxed
+ { 0, 3658 }, // MetalSupportType::Stick
+ { 0, 3658 }, // MetalSupportType::StickAlt
+ { 0, 3141 }, // MetalSupportType::ThickCentred
+ { 0, 3158 }, // MetalSupportType::Thick
+ { 0, 3175 }, // MetalSupportType::ThickAlt
+ { 0, 3192 }, // MetalSupportType::ThickAltCentred
+ { 0, 3124 }, // MetalSupportType::Truss
+ { 3243, 3209 }, // MetalSupportType::TubesInverted
+ { 3334, 3353 }, // MetalSupportType::BoxedCoated
+};
+
+/** rct2: 0x0097B190 */
+static constexpr MetalSupportsImages _97B190[] = {
+ { 3243, 3226 }, // 3209
+ { 3279, 3262 },
+ { 3298, 3262 },
+ { 3334, 3317 },
+ { 0, 3658 },
+ { 0, 3658 },
+ { 0, 3141 },
+ { 0, 3158 },
+ { 0, 3175 },
+ { 0, 3192 },
+ { 0, 3124 },
+ { 3243, 3226 }, // 3209
+ { 3334, 3353 },
+};
+
+/** rct2: 0x0097B404 */
+static constexpr uint8_t metal_supports_slope_image_map[] = {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
+ 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 16, 0, 17, 18, 0,
+};
+// clang-format on
+
+/**
+ * Metal pole supports
+ * @param supportType (edi)
+ * @param segment (ebx)
+ * @param special (ax)
+ * @param height (edx)
+ * @param imageTemplate (ebp)
+ * rct2: 0x00663105
+ */
+bool MetalASupportsPaintSetup(
+ PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
+ ImageId imageTemplate)
+{
+ uint8_t segment = EnumValue(placement);
+ auto supportType = EnumValue(supportTypeMember);
+ SupportHeight* supportSegments = session.SupportSegments;
+
+ if (!(session.Flags & PaintSessionFlags::PassedSurface))
+ {
+ return false;
+ }
+
+ if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
+ {
+ if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
+ {
+ return false;
+ }
+ imageTemplate = ImageId(0).WithTransparency(FilterPaletteID::PaletteDarken1);
+ }
+
+ int16_t originalHeight = height;
+ int32_t originalSegment = segment;
+
+ const uint8_t rotation = session.CurrentRotation;
+ int16_t unk9E3294 = -1;
+ if (height < supportSegments[segment].height)
+ {
+ unk9E3294 = height;
+
+ height -= supportTypeToHeight[supportType];
+ if (height < 0)
+ return false;
+
+ const uint8_t* esi = &(_97AF32[rotation * 2]);
+
+ uint8_t newSegment = esi[segment * 8];
+ if (height <= supportSegments[newSegment].height)
+ {
+ esi += 72;
+ newSegment = esi[segment * 8];
+ if (height <= supportSegments[newSegment].height)
+ {
+ esi += 72;
+ newSegment = esi[segment * 8];
+ if (height <= supportSegments[newSegment].height)
+ {
+ esi += 72;
+ newSegment = esi[segment * 8];
+ if (height <= supportSegments[newSegment].height)
+ {
+ return false;
+ }
+ }
+ }
+ }
+
+ uint8_t ebp = esi[segment * 8 + 1];
+
+ auto offset = CoordsXYZ{ SupportBoundBoxes[segment] + Loc97B052[ebp], height };
+ auto boundBoxLength = CoordsXYZ(_97B062[ebp], 1);
+
+ auto image_id = imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]);
+ PaintAddImageAsParent(session, image_id, offset, boundBoxLength);
+
+ segment = newSegment;
+ }
+ int16_t si = height;
+ if (supportSegments[segment].slope & SUPPORTS_SLOPE_5 || height - supportSegments[segment].height < 6
+ || _97B15C[supportType].base_id == 0)
+ {
+ height = supportSegments[segment].height;
+ }
+ else
+ {
+ int8_t xOffset = SupportBoundBoxes[segment].x;
+ int8_t yOffset = SupportBoundBoxes[segment].y;
+
+ uint32_t imageIndex = _97B15C[supportType].base_id;
+ imageIndex += metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
+ auto image_id = imageTemplate.WithIndex(imageIndex);
+
+ PaintAddImageAsParent(session, image_id, { xOffset, yOffset, supportSegments[segment].height }, { 0, 0, 5 });
+
+ height = supportSegments[segment].height + 6;
+ }
+
+ // Work out if a small support segment required to bring support to normal
+ // size (aka floor2(x, 16))
+ int16_t heightDiff = Floor2(height + 16, 16);
+ if (heightDiff > si)
+ {
+ heightDiff = si;
+ }
+
+ heightDiff -= height;
+
+ if (heightDiff > 0)
+ {
+ int8_t xOffset = SupportBoundBoxes[segment].x;
+ int8_t yOffset = SupportBoundBoxes[segment].y;
+
+ uint32_t imageIndex = _97B15C[supportType].beam_id;
+ imageIndex += heightDiff - 1;
+ auto image_id = imageTemplate.WithIndex(imageIndex);
+
+ PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, heightDiff - 1 });
+ }
+
+ height += heightDiff;
+ // 6632e6
+
+ for (uint8_t count = 0;; count++)
+ {
+ if (count >= 4)
+ count = 0;
+
+ int16_t z = height + 16;
+ if (z > si)
+ {
+ z = si;
+ }
+
+ z -= height;
+ if (z <= 0)
+ break;
+
+ int8_t xOffset = SupportBoundBoxes[segment].x;
+ int8_t yOffset = SupportBoundBoxes[segment].y;
+
+ uint32_t imageIndex = _97B15C[supportType].beam_id;
+ imageIndex += z - 1;
+
+ if (count == 3 && z == 0x10)
+ imageIndex++;
+
+ auto image_id = imageTemplate.WithIndex(imageIndex);
+ PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, z - 1 });
+
+ height += z;
+ }
+
+ supportSegments[segment].height = unk9E3294;
+ supportSegments[segment].slope = 0x20;
+
+ height = originalHeight;
+ segment = originalSegment;
+ if (special == 0)
+ return true;
+
+ if (special < 0)
+ {
+ special = -special;
+ height--;
+ }
+
+ CoordsXYZ boundBoxOffset = CoordsXYZ(SupportBoundBoxes[segment], height);
+ si = height + special;
+
+ while (1)
+ {
+ int16_t z = height + 16;
+ if (z > si)
+ {
+ z = si;
+ }
+
+ z -= height;
+ if (z <= 0)
+ break;
+
+ int8_t xOffset = SupportBoundBoxes[segment].x;
+ int8_t yOffset = SupportBoundBoxes[segment].y;
+
+ uint32_t imageIndex = _97B190[supportType].beam_id;
+ imageIndex += z - 1;
+ auto image_id = imageTemplate.WithIndex(imageIndex);
+
+ PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { boundBoxOffset, { 0, 0, 0 } });
+
+ height += z;
+ }
+
+ return true;
+}
+
+/**
+ * Metal pole supports
+ * rct2: 0x00663584
+ *
+ * @param supportType (edi)
+ * @param segment (ebx)
+ * @param special (ax)
+ * @param height (edx)
+ * @param imageTemplate (ebp)
+ *
+ * @return (Carry Flag)
+ */
+bool MetalBSupportsPaintSetup(
+ PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
+ ImageId imageTemplate)
+{
+ uint8_t segment = EnumValue(placement);
+ auto supportType = EnumValue(supportTypeMember);
+ SupportHeight* supportSegments = session.SupportSegments;
+ uint8_t originalSegment = segment;
+
+ if (!(session.Flags & PaintSessionFlags::PassedSurface))
+ {
+ return false; // AND
+ }
+
+ if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
+ {
+ if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
+ {
+ return false;
+ }
+ imageTemplate = ImageId(0).WithTransparency(FilterPaletteID::PaletteDarken1);
+ }
+
+ uint16_t _9E3294 = 0xFFFF;
+ int32_t baseHeight = height;
+
+ if (height < supportSegments[segment].height)
+ {
+ _9E3294 = height;
+
+ baseHeight -= supportTypeToHeight[supportType];
+ if (baseHeight < 0)
+ {
+ return false; // AND
+ }
+
+ uint16_t baseIndex = session.CurrentRotation * 2;
+
+ uint8_t ebp = _97AF32[baseIndex + segment * 8];
+ if (baseHeight <= supportSegments[ebp].height)
+ {
+ baseIndex += 9 * 4 * 2; // 9 segments, 4 directions, 2 values
+ uint8_t ebp2 = _97AF32[baseIndex + segment * 8];
+ if (baseHeight <= supportSegments[ebp2].height)
+ {
+ baseIndex += 9 * 4 * 2;
+ uint8_t ebp3 = _97AF32[baseIndex + segment * 8];
+ if (baseHeight <= supportSegments[ebp3].height)
+ {
+ baseIndex += 9 * 4 * 2;
+ uint8_t ebp4 = _97AF32[baseIndex + segment * 8];
+ if (baseHeight <= supportSegments[ebp4].height)
+ {
+ return true; // STC
+ }
+ }
+ }
+ }
+
+ ebp = _97AF32[baseIndex + segment * 8 + 1];
+ if (ebp >= 4)
+ {
+ return true; // STC
+ }
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]),
+ { SupportBoundBoxes[originalSegment] + Loc97B052[ebp], baseHeight }, { _97B062[ebp], 1 });
+ }
+
+ int32_t si = baseHeight;
+
+ if ((supportSegments[segment].slope & 0x20) || (baseHeight - supportSegments[segment].height < 6)
+ || (_97B15C[supportType].base_id == 0))
+ {
+ baseHeight = supportSegments[segment].height;
+ }
+ else
+ {
+ uint32_t imageOffset = metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
+ uint32_t imageId = _97B15C[supportType].base_id + imageOffset;
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[segment], supportSegments[segment].height },
+ { 0, 0, 5 });
+
+ baseHeight = supportSegments[segment].height + 6;
+ }
+
+ int16_t heightDiff = Floor2(baseHeight + 16, 16);
+ if (heightDiff > si)
+ {
+ heightDiff = si;
+ }
+
+ heightDiff -= baseHeight;
+ if (heightDiff > 0)
+ {
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(_97B15C[supportType].beam_id + (heightDiff - 1)),
+ { SupportBoundBoxes[segment], baseHeight }, { 0, 0, heightDiff - 1 });
+ }
+
+ baseHeight += heightDiff;
+
+ int16_t endHeight;
+
+ int32_t i = 1;
+ while (true)
+ {
+ endHeight = baseHeight + 16;
+ if (endHeight > si)
+ {
+ endHeight = si;
+ }
+
+ int16_t beamLength = endHeight - baseHeight;
+
+ if (beamLength <= 0)
+ {
+ break;
+ }
+
+ uint32_t imageId = _97B15C[supportType].beam_id + (beamLength - 1);
+
+ if (i % 4 == 0)
+ {
+ // Each fourth run, draw a special image
+ if (beamLength == 16)
+ {
+ imageId += 1;
+ }
+ }
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, beamLength - 1 });
+
+ baseHeight += beamLength;
+ i++;
+ }
+
+ supportSegments[segment].height = _9E3294;
+ supportSegments[segment].slope = 0x20;
+
+ if (special != 0)
+ {
+ baseHeight = height;
+ si = height + special;
+ while (true)
+ {
+ endHeight = baseHeight + 16;
+ if (endHeight > si)
+ {
+ endHeight = si;
+ }
+
+ int16_t beamLength = endHeight - baseHeight;
+ if (beamLength <= 0)
+ {
+ break;
+ }
+
+ uint32_t imageId = _97B15C[supportType].beam_id + (beamLength - 1);
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[originalSegment], baseHeight },
+ { { SupportBoundBoxes[originalSegment], height }, { 0, 0, 0 } });
+ baseHeight += beamLength;
+ }
+ }
+
+ return false; // AND
+}
+
+constexpr uint8_t MetalSupportTypeCount = 13;
+constexpr MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][NumOrthogonalDirections] = {
+ { MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes },
+ { MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt },
+ { MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork },
+ { MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed },
+ { MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt },
+ { MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick },
+ { MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt },
+ { MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred },
+ { MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick },
+ { MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred },
+ { MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss },
+ { MetalSupportType::TubesInverted, MetalSupportType::TubesInverted, MetalSupportType::TubesInverted,
+ MetalSupportType::TubesInverted },
+ { MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated,
+ MetalSupportType::BoxedCoated },
+};
+
+void DrawSupportsSideBySide(
+ PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special)
+{
+ type = RotatedMetalSupports[EnumValue(type)][direction];
+
+ if (direction & 1)
+ {
+ MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour);
+ MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour);
+ }
+ else
+ {
+ MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopLeftSide, special, height, colour);
+ MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomRightSide, special, height, colour);
+ }
+}
+
+/**
+ *
+ * rct2: 0x006A326B
+ *
+ * @param segment (ebx)
+ * @param special (ax)
+ * @param height (dx)
+ * @param imageTemplate (ebp)
+ * @param railingsDescriptor (0x00F3EF6C)
+ *
+ * @return Whether supports were drawn
+ */
+bool PathPoleSupportsPaintSetup(
+ PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate,
+ const FootpathPaintInfo& pathPaintInfo)
+{
+ auto segment = EnumValue(supportPlace);
+
+ SupportHeight* supportSegments = session.SupportSegments;
+
+ if (!(session.Flags & PaintSessionFlags::PassedSurface))
+ {
+ return false;
+ }
+
+ if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
+ {
+ if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
+ {
+ return false;
+ }
+ imageTemplate = ImageId().WithTransparency(FilterPaletteID::PaletteDarken1);
+ }
+
+ if (height < supportSegments[segment].height)
+ {
+ return true; // STC
+ }
+
+ uint16_t baseHeight;
+
+ if ((supportSegments[segment].slope & 0x20) || (height - supportSegments[segment].height < 6)
+ || !(pathPaintInfo.RailingFlags & RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE))
+ {
+ baseHeight = supportSegments[segment].height;
+ }
+ else
+ {
+ uint8_t imageOffset = metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
+ baseHeight = supportSegments[segment].height;
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 37 + imageOffset),
+ { SupportBoundBoxes[segment].x, SupportBoundBoxes[segment].y, baseHeight }, { 0, 0, 5 });
+ baseHeight += 6;
+ }
+
+ // si = height
+ // dx = baseHeight
+
+ int16_t heightDiff = Floor2(baseHeight + 16, 16);
+ if (heightDiff > height)
+ {
+ heightDiff = height;
+ }
+
+ heightDiff -= baseHeight;
+
+ if (heightDiff > 0)
+ {
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 20 + (heightDiff - 1)),
+ { SupportBoundBoxes[segment], baseHeight }, { 0, 0, heightDiff - 1 });
+ }
+
+ baseHeight += heightDiff;
+
+ bool keepGoing = true;
+ while (keepGoing)
+ {
+ int16_t z;
+
+ for (int32_t i = 0; i < 4; ++i)
+ {
+ z = baseHeight + 16;
+ if (z > height)
+ {
+ z = height;
+ }
+ z -= baseHeight;
+
+ if (z <= 0)
+ {
+ keepGoing = false;
+ break;
+ }
+
+ if (i == 3)
+ {
+ // Only do the z check in the fourth run.
+ break;
+ }
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 20 + (z - 1)),
+ { SupportBoundBoxes[segment], baseHeight }, { 0, 0, (z - 1) });
+
+ baseHeight += z;
+ }
+
+ if (!keepGoing)
+ {
+ break;
+ }
+
+ ImageIndex imageIndex = pathPaintInfo.BridgeImageId + 20 + (z - 1);
+ if (z == 16)
+ {
+ imageIndex += 1;
+ }
+
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(imageIndex), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, (z - 1) });
+
+ baseHeight += z;
+ }
+
+ // Loc6A34D8
+ supportSegments[segment].height = 0xFFFF;
+ supportSegments[segment].slope = 0x20;
+
+ if (isSloped)
+ {
+ int16_t si = baseHeight + COORDS_Z_STEP;
+
+ while (true)
+ {
+ int16_t z = baseHeight + (2 * COORDS_Z_STEP);
+ if (z > si)
+ {
+ z = si;
+ }
+
+ z -= baseHeight;
+ if (z <= 0)
+ {
+ break;
+ }
+
+ ImageIndex imageIndex = pathPaintInfo.BridgeImageId + 20 + (z - 1);
+ PaintAddImageAsParent(
+ session, imageTemplate.WithIndex(imageIndex), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, 0 });
+
+ baseHeight += z;
+ }
+ }
+
+ return false; // AND
+}
diff --git a/src/openrct2/paint/Supports.h b/src/openrct2/paint/support/MetalSupports.h
similarity index 56%
rename from src/openrct2/paint/Supports.h
rename to src/openrct2/paint/support/MetalSupports.h
index afe7ea1525..40c74e4288 100644
--- a/src/openrct2/paint/Supports.h
+++ b/src/openrct2/paint/support/MetalSupports.h
@@ -9,56 +9,10 @@
#pragma once
-#include "../common.h"
-#include "../drawing/ImageId.hpp"
-#include "../world/Footpath.h"
+#include "../../drawing/ImageId.hpp"
+#include "../../world/Location.hpp"
-struct FootpathPaintInfo;
-
-constexpr uint8_t NumVanillaWoodenSupportTypes = 49;
-
-enum class WoodenSupportType : uint8_t
-{
- Truss = 0,
- Mine = 1,
-};
-
-enum class WoodenSupportSubType : uint8_t
-{
- NeSw = 0,
- NwSe = 1,
- Corner0 = 2,
- Corner1 = 3,
- Corner2 = 4,
- Corner3 = 5,
-
- Null,
-};
-
-enum class WoodenSupportTransitionType : uint8_t
-{
- None = 255,
- FlatToUp25Deg = 0,
- Up25DegToFlat = 1,
- Up25Deg = 2,
- Up25DegToUp60Deg = 3,
- Up60DegToUp25Deg = 4,
- Up60Deg = 5,
- FlatToUp60Deg = 7,
- Up60DegToFlat = 8,
- FlatToUp25DegRailway = 9,
- Up25DegToFlatRailway = 10,
- Up25DegRailway = 11,
- Scenery = 12,
- FlatToUp60DegLongBaseSeq0 = 13,
- FlatToUp60DegLongBaseSeq1 = 14,
- FlatToUp60DegLongBaseSeq2 = 15,
- FlatToUp60DegLongBaseSeq3 = 16,
- Up60DegToFlatLongBaseSeq0 = 17,
- Up60DegToFlatLongBaseSeq1 = 18,
- Up60DegToFlatLongBaseSeq2 = 19,
- Up60DegToFlatLongBaseSeq3 = 20,
-};
+#include
// There are 13 types of metal supports. A graphic showing all of them is available here:
// https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png
@@ -135,34 +89,17 @@ enum class MetalSupportPlace : uint8_t
BottomRightSide = 8,
};
-bool WoodenASupportsPaintSetup(
- PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, int32_t height, ImageId imageTemplate,
- WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None, Direction direction = 0);
-bool WoodenASupportsPaintSetupRotated(
- PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, Direction direction, int32_t height,
- ImageId imageTemplate, WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None);
-bool WoodenBSupportsPaintSetup(
- PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, int32_t height, ImageId imageTemplate,
- WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None, Direction direction = 0);
-bool WoodenBSupportsPaintSetupRotated(
- PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, Direction direction, int32_t height,
- ImageId imageTemplate, WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None);
+struct FootpathPaintInfo;
+struct PaintSession;
+
bool MetalASupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate);
bool MetalBSupportsPaintSetup(
PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
ImageId imageTemplate);
-bool PathBoxSupportsPaintSetup(
- PaintSession& session, WoodenSupportSubType supportType, bool isSloped, Direction slopeRotation, int32_t height,
- ImageId imageTemplate, const FootpathPaintInfo& pathPaintInfo);
+void DrawSupportsSideBySide(
+ PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0);
bool PathPoleSupportsPaintSetup(
PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate,
const FootpathPaintInfo& pathPaintInfo);
-void DrawSupportsSideBySide(
- PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0);
-
-enum
-{
- SUPPORTS_SLOPE_5 = 1 << 5
-};
diff --git a/src/openrct2/paint/Supports.cpp b/src/openrct2/paint/support/WoodenSupports.cpp
similarity index 53%
rename from src/openrct2/paint/Supports.cpp
rename to src/openrct2/paint/support/WoodenSupports.cpp
index f3a2c903b8..8ac8bbe5bb 100644
--- a/src/openrct2/paint/Supports.cpp
+++ b/src/openrct2/paint/support/WoodenSupports.cpp
@@ -7,185 +7,25 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "Supports.h"
+#include "WoodenSupports.h"
-#include "../interface/Viewport.h"
-#include "../object/FootpathRailingsObject.h"
-#include "../sprites.h"
-#include "../util/Math.hpp"
-#include "../world/Surface.h"
-#include "Boundbox.h"
-#include "Paint.SessionFlags.h"
-#include "Paint.h"
-#include "tile_element/Paint.TileElement.h"
+#include "../../sprites.h"
+#include "../../world/Map.h"
+#include "../../world/Surface.h"
+#include "../Boundbox.h"
+#include "../Paint.SessionFlags.h"
+#include "../Paint.h"
+#include "Generic.h"
-/** rct2: 0x0097AF20, 0x0097AF21 */
-// clang-format off
-static constexpr CoordsXY SupportBoundBoxes[] = {
- { 4, 4 },
- { 28, 4 },
- { 4, 28 },
- { 28, 28 },
- { 16, 16 },
- { 16, 4 },
- { 4, 16 },
- { 28, 16 },
- { 16, 28 },
-};
-
-/** rct2: 0x0097AF32 */
-static constexpr uint8_t _97AF32[] = {
- 5, 2, 5, 2, 5, 2, 5, 2,
- 7, 1, 7, 1, 7, 1, 7, 1,
- 6, 3, 6, 3, 6, 3, 6, 3,
- 8, 0, 8, 0, 8, 0, 8, 0,
- 5, 3, 6, 0, 8, 1, 7, 2,
- 1, 2, 1, 2, 1, 2, 1, 2,
- 0, 3, 0, 3, 0, 3, 0, 3,
- 3, 1, 3, 1, 3, 1, 3, 1,
- 2, 0, 2, 0, 2, 0, 2, 0,
-
- 6, 1, 6, 1, 6, 1, 6, 1,
- 5, 0, 5, 0, 5, 0, 5, 0,
- 8, 2, 8, 2, 8, 2, 8, 2,
- 7, 3, 7, 3, 7, 3, 7, 3,
- 6, 0, 8, 1, 7, 2, 5, 3,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 2, 1, 2, 1, 2, 1, 2, 1,
- 1, 3, 1, 3, 1, 3, 1, 3,
- 3, 2, 3, 2, 3, 2, 3, 2,
-
- 1, 6, 1, 6, 1, 6, 1, 6,
- 3, 5, 3, 5, 3, 5, 3, 5,
- 0, 7, 0, 7, 0, 7, 0, 7,
- 2, 4, 2, 4, 2, 4, 2, 4,
- 8, 1, 7, 2, 5, 3, 6, 0,
- 4, 1, 4, 1, 4, 1, 4, 1,
- 4, 2, 4, 2, 4, 2, 4, 2,
- 4, 0, 4, 0, 4, 0, 4, 0,
- 4, 3, 4, 3, 4, 3, 4, 3,
-
- 2, 5, 2, 5, 2, 5, 2, 5,
- 0, 4, 0, 4, 0, 4, 0, 4,
- 3, 6, 3, 6, 3, 6, 3, 6,
- 1, 7, 1, 7, 1, 7, 1, 7,
- 7, 2, 5, 3, 6, 0, 8, 1,
- 8, 5, 8, 5, 8, 5, 8, 5,
- 7, 6, 7, 6, 7, 6, 7, 6,
- 6, 4, 6, 4, 6, 4, 6, 4,
- 5, 7, 5, 7, 5, 7, 5, 7,
-};
-
-/** rct2: 0x0097B052, 0x0097B053 */
-static constexpr CoordsXY Loc97B052[] = {
- { -15, -1 },
- { 0, -2 },
- { -2, -1 },
- { -1, -15 },
- { -26, -1 },
- { 0, -2 },
- { -2, -1 },
- { -1, -26 },
-};
-
-/** rct2: 0x0097B062, 0x0097B063 */
-static constexpr CoordsXY _97B062[] = {
- { 18, 3 },
- { 3, 18 },
- { 18, 3 },
- { 3, 18 },
- { 32, 3 },
- { 3, 32 },
- { 32, 3 },
- { 3, 32 }
-};
-
-/** rct2: 0x0097B072 */
-static constexpr uint32_t _metalSupportTypeToCrossbeamImages[][8] = {
- { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Tubes
- { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Fork
- { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::ForkAlt
- { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::Boxed
- { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::Stick
- { 3374, 3375, 3374, 3375, 3376, 3377, 3376, 3377 }, // MetalSupportType::StickAlt
- { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::ThickCentred
- { 3378, 3383, 3378, 3383, 3380, 3385, 3380, 3385 }, // MetalSupportType::Thick
- { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAlt
- { 3382, 3379, 3382, 3379, 3384, 3381, 3384, 3381 }, // MetalSupportType::ThickAltCentred
- { 3378, 3379, 3378, 3379, 3380, 3381, 3380, 3381 }, // MetalSupportType::Truss
- { 3386, 3387, 3386, 3387, 3388, 3389, 3388, 3389 }, // MetalSupportType::TubesInverted
- { 3370, 3371, 3370, 3371, 3372, 3373, 3372, 3373 }, // MetalSupportType::BoxedCoated
-};
-
-/** rct2: 0x0097B142 */
-static constexpr uint8_t supportTypeToHeight[] = {
- 6, // MetalSupportType::Tubes
- 3, // MetalSupportType::Fork
- 3, // MetalSupportType::ForkAlt
- 6, // MetalSupportType::Boxed
- 3, // MetalSupportType::Stick
- 3, // MetalSupportType::StickAlt
- 6, // MetalSupportType::ThickCentred
- 6, // MetalSupportType::Thick
- 6, // MetalSupportType::ThickAlt
- 6, // MetalSupportType::ThickAltCentred
- 4, // MetalSupportType::Truss
- 3, // MetalSupportType::TubesInverted
- 6, // MetalSupportType::BoxedCoated
-};
-
-struct MetalSupportsImages {
- uint16_t base_id;
- uint16_t beam_id;
-};
-
-/** rct2: 0x0097B15C */
-static constexpr MetalSupportsImages _97B15C[] = {
- { 3243, 3209 }, // MetalSupportType::Tubes
- { 3279, 3262 }, // MetalSupportType::Fork
- { 3298, 3262 }, // MetalSupportType::ForkAlt
- { 3334, 3317 }, // MetalSupportType::Boxed
- { 0, 3658 }, // MetalSupportType::Stick
- { 0, 3658 }, // MetalSupportType::StickAlt
- { 0, 3141 }, // MetalSupportType::ThickCentred
- { 0, 3158 }, // MetalSupportType::Thick
- { 0, 3175 }, // MetalSupportType::ThickAlt
- { 0, 3192 }, // MetalSupportType::ThickAltCentred
- { 0, 3124 }, // MetalSupportType::Truss
- { 3243, 3209 }, // MetalSupportType::TubesInverted
- { 3334, 3353 }, // MetalSupportType::BoxedCoated
-};
-
-/** rct2: 0x0097B190 */
-static constexpr MetalSupportsImages _97B190[] = {
- { 3243, 3226 }, // 3209
- { 3279, 3262 },
- { 3298, 3262 },
- { 3334, 3317 },
- { 0, 3658 },
- { 0, 3658 },
- { 0, 3141 },
- { 0, 3158 },
- { 0, 3175 },
- { 0, 3192 },
- { 0, 3124 },
- { 3243, 3226 }, // 3209
- { 3334, 3353 },
-};
-
-/** rct2: 0x0097B404 */
-static constexpr uint8_t metal_supports_slope_image_map[] = {
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
- 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 16, 0, 17, 18, 0,
-};
-
-struct SupportsIdDescriptor {
+struct SupportsIdDescriptor
+{
uint16_t full;
uint16_t half;
uint16_t flat;
uint16_t slope;
};
+// clang-format off
/* 0x0097B1C4 */
static constexpr SupportsIdDescriptor WoodenSupportImageIds[] = {
{ 3392, 3393, 3394, 3536 },
@@ -443,7 +283,6 @@ static constexpr uint16_t word_97B3C4[] = {
15,
0,
};
-
// clang-format on
static WoodenSupportSubType rotatedWoodenSupportSubTypes[6][NumOrthogonalDirections] = {
@@ -862,387 +701,6 @@ bool WoodenBSupportsPaintSetupRotated(
return WoodenBSupportsPaintSetup(session, supportType, subType, height, imageTemplate, transitionType, direction);
}
-/**
- * Metal pole supports
- * @param supportType (edi)
- * @param segment (ebx)
- * @param special (ax)
- * @param height (edx)
- * @param imageTemplate (ebp)
- * rct2: 0x00663105
- */
-bool MetalASupportsPaintSetup(
- PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
- ImageId imageTemplate)
-{
- uint8_t segment = EnumValue(placement);
- auto supportType = EnumValue(supportTypeMember);
- SupportHeight* supportSegments = session.SupportSegments;
-
- if (!(session.Flags & PaintSessionFlags::PassedSurface))
- {
- return false;
- }
-
- if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
- {
- if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
- {
- return false;
- }
- imageTemplate = ImageId(0).WithTransparency(FilterPaletteID::PaletteDarken1);
- }
-
- int16_t originalHeight = height;
- int32_t originalSegment = segment;
-
- const uint8_t rotation = session.CurrentRotation;
- int16_t unk9E3294 = -1;
- if (height < supportSegments[segment].height)
- {
- unk9E3294 = height;
-
- height -= supportTypeToHeight[supportType];
- if (height < 0)
- return false;
-
- const uint8_t* esi = &(_97AF32[rotation * 2]);
-
- uint8_t newSegment = esi[segment * 8];
- if (height <= supportSegments[newSegment].height)
- {
- esi += 72;
- newSegment = esi[segment * 8];
- if (height <= supportSegments[newSegment].height)
- {
- esi += 72;
- newSegment = esi[segment * 8];
- if (height <= supportSegments[newSegment].height)
- {
- esi += 72;
- newSegment = esi[segment * 8];
- if (height <= supportSegments[newSegment].height)
- {
- return false;
- }
- }
- }
- }
-
- uint8_t ebp = esi[segment * 8 + 1];
-
- auto offset = CoordsXYZ{ SupportBoundBoxes[segment] + Loc97B052[ebp], height };
- auto boundBoxLength = CoordsXYZ(_97B062[ebp], 1);
-
- auto image_id = imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]);
- PaintAddImageAsParent(session, image_id, offset, boundBoxLength);
-
- segment = newSegment;
- }
- int16_t si = height;
- if (supportSegments[segment].slope & SUPPORTS_SLOPE_5 || height - supportSegments[segment].height < 6
- || _97B15C[supportType].base_id == 0)
- {
- height = supportSegments[segment].height;
- }
- else
- {
- int8_t xOffset = SupportBoundBoxes[segment].x;
- int8_t yOffset = SupportBoundBoxes[segment].y;
-
- uint32_t imageIndex = _97B15C[supportType].base_id;
- imageIndex += metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
- auto image_id = imageTemplate.WithIndex(imageIndex);
-
- PaintAddImageAsParent(session, image_id, { xOffset, yOffset, supportSegments[segment].height }, { 0, 0, 5 });
-
- height = supportSegments[segment].height + 6;
- }
-
- // Work out if a small support segment required to bring support to normal
- // size (aka floor2(x, 16))
- int16_t heightDiff = Floor2(height + 16, 16);
- if (heightDiff > si)
- {
- heightDiff = si;
- }
-
- heightDiff -= height;
-
- if (heightDiff > 0)
- {
- int8_t xOffset = SupportBoundBoxes[segment].x;
- int8_t yOffset = SupportBoundBoxes[segment].y;
-
- uint32_t imageIndex = _97B15C[supportType].beam_id;
- imageIndex += heightDiff - 1;
- auto image_id = imageTemplate.WithIndex(imageIndex);
-
- PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, heightDiff - 1 });
- }
-
- height += heightDiff;
- // 6632e6
-
- for (uint8_t count = 0;; count++)
- {
- if (count >= 4)
- count = 0;
-
- int16_t z = height + 16;
- if (z > si)
- {
- z = si;
- }
-
- z -= height;
- if (z <= 0)
- break;
-
- int8_t xOffset = SupportBoundBoxes[segment].x;
- int8_t yOffset = SupportBoundBoxes[segment].y;
-
- uint32_t imageIndex = _97B15C[supportType].beam_id;
- imageIndex += z - 1;
-
- if (count == 3 && z == 0x10)
- imageIndex++;
-
- auto image_id = imageTemplate.WithIndex(imageIndex);
- PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { 0, 0, z - 1 });
-
- height += z;
- }
-
- supportSegments[segment].height = unk9E3294;
- supportSegments[segment].slope = 0x20;
-
- height = originalHeight;
- segment = originalSegment;
- if (special == 0)
- return true;
-
- if (special < 0)
- {
- special = -special;
- height--;
- }
-
- CoordsXYZ boundBoxOffset = CoordsXYZ(SupportBoundBoxes[segment], height);
- si = height + special;
-
- while (1)
- {
- int16_t z = height + 16;
- if (z > si)
- {
- z = si;
- }
-
- z -= height;
- if (z <= 0)
- break;
-
- int8_t xOffset = SupportBoundBoxes[segment].x;
- int8_t yOffset = SupportBoundBoxes[segment].y;
-
- uint32_t imageIndex = _97B190[supportType].beam_id;
- imageIndex += z - 1;
- auto image_id = imageTemplate.WithIndex(imageIndex);
-
- PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { boundBoxOffset, { 0, 0, 0 } });
-
- height += z;
- }
-
- return true;
-}
-
-/**
- * Metal pole supports
- * rct2: 0x00663584
- *
- * @param supportType (edi)
- * @param segment (ebx)
- * @param special (ax)
- * @param height (edx)
- * @param imageTemplate (ebp)
- *
- * @return (Carry Flag)
- */
-bool MetalBSupportsPaintSetup(
- PaintSession& session, MetalSupportType supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
- ImageId imageTemplate)
-{
- uint8_t segment = EnumValue(placement);
- auto supportType = EnumValue(supportTypeMember);
- SupportHeight* supportSegments = session.SupportSegments;
- uint8_t originalSegment = segment;
-
- if (!(session.Flags & PaintSessionFlags::PassedSurface))
- {
- return false; // AND
- }
-
- if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
- {
- if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
- {
- return false;
- }
- imageTemplate = ImageId(0).WithTransparency(FilterPaletteID::PaletteDarken1);
- }
-
- uint16_t _9E3294 = 0xFFFF;
- int32_t baseHeight = height;
-
- if (height < supportSegments[segment].height)
- {
- _9E3294 = height;
-
- baseHeight -= supportTypeToHeight[supportType];
- if (baseHeight < 0)
- {
- return false; // AND
- }
-
- uint16_t baseIndex = session.CurrentRotation * 2;
-
- uint8_t ebp = _97AF32[baseIndex + segment * 8];
- if (baseHeight <= supportSegments[ebp].height)
- {
- baseIndex += 9 * 4 * 2; // 9 segments, 4 directions, 2 values
- uint8_t ebp2 = _97AF32[baseIndex + segment * 8];
- if (baseHeight <= supportSegments[ebp2].height)
- {
- baseIndex += 9 * 4 * 2;
- uint8_t ebp3 = _97AF32[baseIndex + segment * 8];
- if (baseHeight <= supportSegments[ebp3].height)
- {
- baseIndex += 9 * 4 * 2;
- uint8_t ebp4 = _97AF32[baseIndex + segment * 8];
- if (baseHeight <= supportSegments[ebp4].height)
- {
- return true; // STC
- }
- }
- }
- }
-
- ebp = _97AF32[baseIndex + segment * 8 + 1];
- if (ebp >= 4)
- {
- return true; // STC
- }
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]),
- { SupportBoundBoxes[originalSegment] + Loc97B052[ebp], baseHeight }, { _97B062[ebp], 1 });
- }
-
- int32_t si = baseHeight;
-
- if ((supportSegments[segment].slope & 0x20) || (baseHeight - supportSegments[segment].height < 6)
- || (_97B15C[supportType].base_id == 0))
- {
- baseHeight = supportSegments[segment].height;
- }
- else
- {
- uint32_t imageOffset = metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
- uint32_t imageId = _97B15C[supportType].base_id + imageOffset;
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[segment], supportSegments[segment].height },
- { 0, 0, 5 });
-
- baseHeight = supportSegments[segment].height + 6;
- }
-
- int16_t heightDiff = Floor2(baseHeight + 16, 16);
- if (heightDiff > si)
- {
- heightDiff = si;
- }
-
- heightDiff -= baseHeight;
- if (heightDiff > 0)
- {
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(_97B15C[supportType].beam_id + (heightDiff - 1)),
- { SupportBoundBoxes[segment], baseHeight }, { 0, 0, heightDiff - 1 });
- }
-
- baseHeight += heightDiff;
-
- int16_t endHeight;
-
- int32_t i = 1;
- while (true)
- {
- endHeight = baseHeight + 16;
- if (endHeight > si)
- {
- endHeight = si;
- }
-
- int16_t beamLength = endHeight - baseHeight;
-
- if (beamLength <= 0)
- {
- break;
- }
-
- uint32_t imageId = _97B15C[supportType].beam_id + (beamLength - 1);
-
- if (i % 4 == 0)
- {
- // Each fourth run, draw a special image
- if (beamLength == 16)
- {
- imageId += 1;
- }
- }
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, beamLength - 1 });
-
- baseHeight += beamLength;
- i++;
- }
-
- supportSegments[segment].height = _9E3294;
- supportSegments[segment].slope = 0x20;
-
- if (special != 0)
- {
- baseHeight = height;
- si = height + special;
- while (true)
- {
- endHeight = baseHeight + 16;
- if (endHeight > si)
- {
- endHeight = si;
- }
-
- int16_t beamLength = endHeight - baseHeight;
- if (beamLength <= 0)
- {
- break;
- }
-
- uint32_t imageId = _97B15C[supportType].beam_id + (beamLength - 1);
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(imageId), { SupportBoundBoxes[originalSegment], baseHeight },
- { { SupportBoundBoxes[originalSegment], height }, { 0, 0, 0 } });
- baseHeight += beamLength;
- }
- }
-
- return false; // AND
-}
-
/**
* rct2: 0x006A2ECC
*
@@ -1383,199 +841,3 @@ bool PathBoxSupportsPaintSetup(
return hasSupports;
}
-
-/**
- *
- * rct2: 0x006A326B
- *
- * @param segment (ebx)
- * @param special (ax)
- * @param height (dx)
- * @param imageTemplate (ebp)
- * @param railingsDescriptor (0x00F3EF6C)
- *
- * @return Whether supports were drawn
- */
-bool PathPoleSupportsPaintSetup(
- PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate,
- const FootpathPaintInfo& pathPaintInfo)
-{
- auto segment = EnumValue(supportPlace);
-
- SupportHeight* supportSegments = session.SupportSegments;
-
- if (!(session.Flags & PaintSessionFlags::PassedSurface))
- {
- return false;
- }
-
- if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS)
- {
- if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)
- {
- return false;
- }
- imageTemplate = ImageId().WithTransparency(FilterPaletteID::PaletteDarken1);
- }
-
- if (height < supportSegments[segment].height)
- {
- return true; // STC
- }
-
- uint16_t baseHeight;
-
- if ((supportSegments[segment].slope & 0x20) || (height - supportSegments[segment].height < 6)
- || !(pathPaintInfo.RailingFlags & RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE))
- {
- baseHeight = supportSegments[segment].height;
- }
- else
- {
- uint8_t imageOffset = metal_supports_slope_image_map[supportSegments[segment].slope & TILE_ELEMENT_SURFACE_SLOPE_MASK];
- baseHeight = supportSegments[segment].height;
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 37 + imageOffset),
- { SupportBoundBoxes[segment].x, SupportBoundBoxes[segment].y, baseHeight }, { 0, 0, 5 });
- baseHeight += 6;
- }
-
- // si = height
- // dx = baseHeight
-
- int16_t heightDiff = Floor2(baseHeight + 16, 16);
- if (heightDiff > height)
- {
- heightDiff = height;
- }
-
- heightDiff -= baseHeight;
-
- if (heightDiff > 0)
- {
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 20 + (heightDiff - 1)),
- { SupportBoundBoxes[segment], baseHeight }, { 0, 0, heightDiff - 1 });
- }
-
- baseHeight += heightDiff;
-
- bool keepGoing = true;
- while (keepGoing)
- {
- int16_t z;
-
- for (int32_t i = 0; i < 4; ++i)
- {
- z = baseHeight + 16;
- if (z > height)
- {
- z = height;
- }
- z -= baseHeight;
-
- if (z <= 0)
- {
- keepGoing = false;
- break;
- }
-
- if (i == 3)
- {
- // Only do the z check in the fourth run.
- break;
- }
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(pathPaintInfo.BridgeImageId + 20 + (z - 1)),
- { SupportBoundBoxes[segment], baseHeight }, { 0, 0, (z - 1) });
-
- baseHeight += z;
- }
-
- if (!keepGoing)
- {
- break;
- }
-
- ImageIndex imageIndex = pathPaintInfo.BridgeImageId + 20 + (z - 1);
- if (z == 16)
- {
- imageIndex += 1;
- }
-
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(imageIndex), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, (z - 1) });
-
- baseHeight += z;
- }
-
- // Loc6A34D8
- supportSegments[segment].height = 0xFFFF;
- supportSegments[segment].slope = 0x20;
-
- if (isSloped)
- {
- int16_t si = baseHeight + COORDS_Z_STEP;
-
- while (true)
- {
- int16_t z = baseHeight + (2 * COORDS_Z_STEP);
- if (z > si)
- {
- z = si;
- }
-
- z -= baseHeight;
- if (z <= 0)
- {
- break;
- }
-
- ImageIndex imageIndex = pathPaintInfo.BridgeImageId + 20 + (z - 1);
- PaintAddImageAsParent(
- session, imageTemplate.WithIndex(imageIndex), { SupportBoundBoxes[segment], baseHeight }, { 0, 0, 0 });
-
- baseHeight += z;
- }
- }
-
- return false; // AND
-}
-
-constexpr uint8_t MetalSupportTypeCount = 13;
-constexpr MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][NumOrthogonalDirections] = {
- { MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes },
- { MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt },
- { MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork },
- { MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed },
- { MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt },
- { MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick },
- { MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt },
- { MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred },
- { MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick },
- { MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred },
- { MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss },
- { MetalSupportType::TubesInverted, MetalSupportType::TubesInverted, MetalSupportType::TubesInverted,
- MetalSupportType::TubesInverted },
- { MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated,
- MetalSupportType::BoxedCoated },
-};
-
-void DrawSupportsSideBySide(
- PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special)
-{
- type = RotatedMetalSupports[EnumValue(type)][direction];
-
- if (direction & 1)
- {
- MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour);
- MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour);
- }
- else
- {
- MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopLeftSide, special, height, colour);
- MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomRightSide, special, height, colour);
- }
-}
diff --git a/src/openrct2/paint/support/WoodenSupports.h b/src/openrct2/paint/support/WoodenSupports.h
new file mode 100644
index 0000000000..0dd72d0e4b
--- /dev/null
+++ b/src/openrct2/paint/support/WoodenSupports.h
@@ -0,0 +1,79 @@
+/*****************************************************************************
+ * 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 "../../drawing/ImageId.hpp"
+#include "../../world/Location.hpp"
+
+#include
+
+constexpr uint8_t NumVanillaWoodenSupportTypes = 49;
+
+enum class WoodenSupportType : uint8_t
+{
+ Truss = 0,
+ Mine = 1,
+};
+
+enum class WoodenSupportSubType : uint8_t
+{
+ NeSw = 0,
+ NwSe = 1,
+ Corner0 = 2,
+ Corner1 = 3,
+ Corner2 = 4,
+ Corner3 = 5,
+
+ Null,
+};
+
+enum class WoodenSupportTransitionType : uint8_t
+{
+ None = 255,
+ FlatToUp25Deg = 0,
+ Up25DegToFlat = 1,
+ Up25Deg = 2,
+ Up25DegToUp60Deg = 3,
+ Up60DegToUp25Deg = 4,
+ Up60Deg = 5,
+ FlatToUp60Deg = 7,
+ Up60DegToFlat = 8,
+ FlatToUp25DegRailway = 9,
+ Up25DegToFlatRailway = 10,
+ Up25DegRailway = 11,
+ Scenery = 12,
+ FlatToUp60DegLongBaseSeq0 = 13,
+ FlatToUp60DegLongBaseSeq1 = 14,
+ FlatToUp60DegLongBaseSeq2 = 15,
+ FlatToUp60DegLongBaseSeq3 = 16,
+ Up60DegToFlatLongBaseSeq0 = 17,
+ Up60DegToFlatLongBaseSeq1 = 18,
+ Up60DegToFlatLongBaseSeq2 = 19,
+ Up60DegToFlatLongBaseSeq3 = 20,
+};
+
+struct FootpathPaintInfo;
+struct PaintSession;
+
+bool WoodenASupportsPaintSetup(
+ PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, int32_t height, ImageId imageTemplate,
+ WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None, Direction direction = 0);
+bool WoodenASupportsPaintSetupRotated(
+ PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, Direction direction, int32_t height,
+ ImageId imageTemplate, WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None);
+bool WoodenBSupportsPaintSetup(
+ PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, int32_t height, ImageId imageTemplate,
+ WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None, Direction direction = 0);
+bool WoodenBSupportsPaintSetupRotated(
+ PaintSession& session, WoodenSupportType supportType, WoodenSupportSubType subType, Direction direction, int32_t height,
+ ImageId imageTemplate, WoodenSupportTransitionType transitionType = WoodenSupportTransitionType::None);
+bool PathBoxSupportsPaintSetup(
+ PaintSession& session, WoodenSupportSubType supportType, bool isSloped, Direction slopeRotation, int32_t height,
+ ImageId imageTemplate, const FootpathPaintInfo& pathPaintInfo);
diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp
index 6ba8fb5a2a..33b788e2ae 100644
--- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp
+++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp
@@ -29,7 +29,7 @@
#include "../../world/Footpath.h"
#include "../../world/Park.h"
#include "../../world/TileInspector.h"
-#include "../Supports.h"
+#include "../support/WoodenSupports.h"
#include "Paint.TileElement.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp
index 7ecd1eddb7..8372297e6c 100644
--- a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp
+++ b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp
@@ -28,7 +28,7 @@
#include "../../world/Scenery.h"
#include "../../world/TileInspector.h"
#include "../Boundbox.h"
-#include "../Supports.h"
+#include "../support/WoodenSupports.h"
#include "Paint.TileElement.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp
index 6cddd3631f..cc7ae59c33 100644
--- a/src/openrct2/paint/tile_element/Paint.Path.cpp
+++ b/src/openrct2/paint/tile_element/Paint.Path.cpp
@@ -35,7 +35,8 @@
#include "../../world/TileInspector.h"
#include "../Boundbox.h"
#include "../Paint.SessionFlags.h"
-#include "../Supports.h"
+#include "../support/MetalSupports.h"
+#include "../support/WoodenSupports.h"
#include "Paint.PathAddition.h"
#include "Paint.Surface.h"
#include "Paint.TileElement.h"
diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp
index eb849eebd6..daf7d59a59 100644
--- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp
+++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp
@@ -21,7 +21,7 @@
#include "../../world/Map.h"
#include "../../world/Scenery.h"
#include "../../world/TileInspector.h"
-#include "../Supports.h"
+#include "../support/WoodenSupports.h"
#include "Paint.TileElement.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp
index a329479eb6..a65d07fbf9 100644
--- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp
+++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp
@@ -29,8 +29,8 @@
#include "../../world/Surface.h"
#include "../Paint.SessionFlags.h"
#include "../Paint.h"
-#include "../Supports.h"
#include "../VirtualFloor.h"
+#include "../support/WoodenSupports.h"
#include "Paint.Surface.h"
#include
diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp
index 76ce08c9a4..09120740a3 100644
--- a/src/openrct2/ride/TrackPaint.cpp
+++ b/src/openrct2/ride/TrackPaint.cpp
@@ -20,7 +20,8 @@
#include "../object/StationObject.h"
#include "../paint/Paint.SessionFlags.h"
#include "../paint/Paint.h"
-#include "../paint/Supports.h"
+#include "../paint/support/MetalSupports.h"
+#include "../paint/support/WoodenSupports.h"
#include "../paint/tile_element/Paint.TileElement.h"
#include "../scenario/Scenario.h"
#include "../sprites.h"
diff --git a/src/openrct2/ride/TrackPaint.h b/src/openrct2/ride/TrackPaint.h
index ee28b4f37a..695f2ce357 100644
--- a/src/openrct2/ride/TrackPaint.h
+++ b/src/openrct2/ride/TrackPaint.h
@@ -11,7 +11,7 @@
#include "../common.h"
#include "../paint/Paint.h"
-#include "../paint/Supports.h"
+#include "../paint/support/MetalSupports.h"
#include "../paint/tile_element/Paint.TileElement.h"
#include "../world/Map.h"
diff --git a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
index 58a0e8c635..9a3028be45 100644
--- a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
+++ b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/AlpineCoaster.cpp b/src/openrct2/ride/coaster/AlpineCoaster.cpp
index 3eafa4b0fd..2b09477330 100644
--- a/src/openrct2/ride/coaster/AlpineCoaster.cpp
+++ b/src/openrct2/ride/coaster/AlpineCoaster.cpp
@@ -17,7 +17,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/coaster/BobsleighCoaster.cpp b/src/openrct2/ride/coaster/BobsleighCoaster.cpp
index a5b8613ec3..43102659c2 100644
--- a/src/openrct2/ride/coaster/BobsleighCoaster.cpp
+++ b/src/openrct2/ride/coaster/BobsleighCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp
index c748e488b1..ac8e70509a 100644
--- a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp
+++ b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp
@@ -12,7 +12,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp
index 9328f340f1..0cdacd6f7f 100644
--- a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp
index 2c5409d5e5..2e8a253172 100644
--- a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp
+++ b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp
index 0459f262da..e0744f3abc 100644
--- a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp
index be536a2843..69a9912482 100644
--- a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/GigaCoaster.cpp b/src/openrct2/ride/coaster/GigaCoaster.cpp
index 1d1aca52b5..5b0b26ec6d 100644
--- a/src/openrct2/ride/coaster/GigaCoaster.cpp
+++ b/src/openrct2/ride/coaster/GigaCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp
index 5eebaf5b74..bc53bf6ea7 100644
--- a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp
+++ b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/HybridCoaster.cpp b/src/openrct2/ride/coaster/HybridCoaster.cpp
index b281ed132e..17f7e13242 100644
--- a/src/openrct2/ride/coaster/HybridCoaster.cpp
+++ b/src/openrct2/ride/coaster/HybridCoaster.cpp
@@ -17,7 +17,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp
index 1e37ab6d9f..97fb97ef8c 100644
--- a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp
+++ b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp
index b940370921..df30b6c977 100644
--- a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp
+++ b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp
index de2b17cc42..645b6e84e2 100644
--- a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp
index 25dc7fa6b5..e41536f1fd 100644
--- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp
@@ -12,7 +12,7 @@
#include "../../localisation/Localisation.h"
#include "../../object/StationObject.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp
index 6151e9847c..d675137923 100644
--- a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp
index 72b999e748..a0fe9a4391 100644
--- a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
index 53ad005756..9dc1ad95c5 100644
--- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/MineRide.cpp b/src/openrct2/ride/coaster/MineRide.cpp
index a549d8ff53..98cd3c2956 100644
--- a/src/openrct2/ride/coaster/MineRide.cpp
+++ b/src/openrct2/ride/coaster/MineRide.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/MineTrainCoaster.cpp b/src/openrct2/ride/coaster/MineTrainCoaster.cpp
index f35e733a6a..b6e51bc7aa 100644
--- a/src/openrct2/ride/coaster/MineTrainCoaster.cpp
+++ b/src/openrct2/ride/coaster/MineTrainCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp
index 1f01accb42..149f7d049b 100644
--- a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp
index 0285713be9..fad5193241 100644
--- a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp
+++ b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp
index ae2c6a9425..5cee391fd7 100644
--- a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp
index 885f296342..b6bac5439b 100644
--- a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp
+++ b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp
index 1d8c5bffcc..6cf0e81e0e 100644
--- a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp
@@ -11,7 +11,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp
index bf20bc799e..4989e79b3f 100644
--- a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp
index 717c293b20..5a45542689 100644
--- a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp
@@ -17,7 +17,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp
index 0131b36a9f..a1d6373763 100644
--- a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/Steeplechase.cpp b/src/openrct2/ride/coaster/Steeplechase.cpp
index e151a760cd..c8c3114c32 100644
--- a/src/openrct2/ride/coaster/Steeplechase.cpp
+++ b/src/openrct2/ride/coaster/Steeplechase.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp
index 62e90977a3..5f4a5b60b5 100644
--- a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp
+++ b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/VirginiaReel.cpp b/src/openrct2/ride/coaster/VirginiaReel.cpp
index f32f42d518..baaeab5211 100644
--- a/src/openrct2/ride/coaster/VirginiaReel.cpp
+++ b/src/openrct2/ride/coaster/VirginiaReel.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Track.h"
#include "../TrackPaint.h"
#include "../Vehicle.h"
diff --git a/src/openrct2/ride/coaster/WildMouse.cpp b/src/openrct2/ride/coaster/WildMouse.cpp
index df15aac0fc..588daa88ad 100644
--- a/src/openrct2/ride/coaster/WildMouse.cpp
+++ b/src/openrct2/ride/coaster/WildMouse.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp
index 7801918760..a2814c3439 100644
--- a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp
+++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp
@@ -14,7 +14,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.Surface.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.h b/src/openrct2/ride/coaster/WoodenRollerCoaster.h
index 5e618b79b5..614f084545 100644
--- a/src/openrct2/ride/coaster/WoodenRollerCoaster.h
+++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.h
@@ -12,6 +12,7 @@
#include "../../drawing/ImageId.hpp"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Location.hpp"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/coaster/WoodenWildMouse.cpp b/src/openrct2/ride/coaster/WoodenWildMouse.cpp
index efba6bbecd..320ae7afe6 100644
--- a/src/openrct2/ride/coaster/WoodenWildMouse.cpp
+++ b/src/openrct2/ride/coaster/WoodenWildMouse.cpp
@@ -10,7 +10,7 @@
#include "../../drawing/Drawing.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/coaster/meta/HyperTwister.h b/src/openrct2/ride/coaster/meta/HyperTwister.h
index 612b79e61f..461cb40c54 100644
--- a/src/openrct2/ride/coaster/meta/HyperTwister.h
+++ b/src/openrct2/ride/coaster/meta/HyperTwister.h
@@ -9,7 +9,7 @@
#pragma once
-#include "../../../paint/Supports.h"
+#include "../../../paint/support/MetalSupports.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
diff --git a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h
index 4ed1298877..d3796d4dad 100644
--- a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h
+++ b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h
@@ -9,7 +9,7 @@
#pragma once
-#include "../../../paint/Supports.h"
+#include "../../../paint/support/MetalSupports.h"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
diff --git a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h
index da03790ceb..0d277ad12b 100644
--- a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h
+++ b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h
@@ -9,7 +9,7 @@
#pragma once
-#include "../../../paint/Supports.h"
+#include "../../../paint/support/MetalSupports.h"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
diff --git a/src/openrct2/ride/gentle/CarRide.cpp b/src/openrct2/ride/gentle/CarRide.cpp
index 01a524a59a..593d5d306b 100644
--- a/src/openrct2/ride/gentle/CarRide.cpp
+++ b/src/openrct2/ride/gentle/CarRide.cpp
@@ -10,7 +10,8 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../RideData.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/Circus.cpp b/src/openrct2/ride/gentle/Circus.cpp
index 88cb8a97cb..be6463a0ca 100644
--- a/src/openrct2/ride/gentle/Circus.cpp
+++ b/src/openrct2/ride/gentle/Circus.cpp
@@ -10,7 +10,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../ride/Vehicle.h"
#include "../Ride.h"
#include "../RideEntry.h"
diff --git a/src/openrct2/ride/gentle/CrookedHouse.cpp b/src/openrct2/ride/gentle/CrookedHouse.cpp
index efcf22007b..aac85a1f2f 100644
--- a/src/openrct2/ride/gentle/CrookedHouse.cpp
+++ b/src/openrct2/ride/gentle/CrookedHouse.cpp
@@ -11,7 +11,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../ride/Vehicle.h"
#include "../Ride.h"
#include "../RideEntry.h"
diff --git a/src/openrct2/ride/gentle/Dodgems.cpp b/src/openrct2/ride/gentle/Dodgems.cpp
index 030c4a2c32..0cf4622c72 100644
--- a/src/openrct2/ride/gentle/Dodgems.cpp
+++ b/src/openrct2/ride/gentle/Dodgems.cpp
@@ -10,7 +10,7 @@
#include "../../interface/Viewport.h"
#include "../../object/StationObject.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../util/Util.h"
#include "../Ride.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/FerrisWheel.cpp b/src/openrct2/ride/gentle/FerrisWheel.cpp
index 5164697aef..29935dbe11 100644
--- a/src/openrct2/ride/gentle/FerrisWheel.cpp
+++ b/src/openrct2/ride/gentle/FerrisWheel.cpp
@@ -12,7 +12,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/FlyingSaucers.cpp b/src/openrct2/ride/gentle/FlyingSaucers.cpp
index 5b14c63f91..33b8344bbd 100644
--- a/src/openrct2/ride/gentle/FlyingSaucers.cpp
+++ b/src/openrct2/ride/gentle/FlyingSaucers.cpp
@@ -10,7 +10,7 @@
#include "../../interface/Viewport.h"
#include "../../object/StationObject.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/gentle/GhostTrain.cpp b/src/openrct2/ride/gentle/GhostTrain.cpp
index b35b40c9d9..b7dcf5b02c 100644
--- a/src/openrct2/ride/gentle/GhostTrain.cpp
+++ b/src/openrct2/ride/gentle/GhostTrain.cpp
@@ -9,7 +9,8 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../RideData.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/HauntedHouse.cpp b/src/openrct2/ride/gentle/HauntedHouse.cpp
index d1deb492d2..68016ed68c 100644
--- a/src/openrct2/ride/gentle/HauntedHouse.cpp
+++ b/src/openrct2/ride/gentle/HauntedHouse.cpp
@@ -11,7 +11,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/Maze.cpp b/src/openrct2/ride/gentle/Maze.cpp
index 85d3d9ee2d..b7d8137ff2 100644
--- a/src/openrct2/ride/gentle/Maze.cpp
+++ b/src/openrct2/ride/gentle/Maze.cpp
@@ -12,7 +12,7 @@
#include "../../core/Numerics.hpp"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../paint/tile_element/Paint.Surface.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/gentle/MerryGoRound.cpp b/src/openrct2/ride/gentle/MerryGoRound.cpp
index 1ef23277ec..b6bf4dbb69 100644
--- a/src/openrct2/ride/gentle/MerryGoRound.cpp
+++ b/src/openrct2/ride/gentle/MerryGoRound.cpp
@@ -10,7 +10,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp
index 5e4c7356ad..c37a9232b7 100644
--- a/src/openrct2/ride/gentle/MiniGolf.cpp
+++ b/src/openrct2/ride/gentle/MiniGolf.cpp
@@ -13,7 +13,8 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.SessionFlags.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../../world/Surface.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/gentle/MiniHelicopters.cpp b/src/openrct2/ride/gentle/MiniHelicopters.cpp
index 2a23876e9a..0cd89a0cf8 100644
--- a/src/openrct2/ride/gentle/MiniHelicopters.cpp
+++ b/src/openrct2/ride/gentle/MiniHelicopters.cpp
@@ -9,7 +9,8 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../RideData.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/MonorailCycles.cpp b/src/openrct2/ride/gentle/MonorailCycles.cpp
index 4e8e2b6e41..ebc56a0e7d 100644
--- a/src/openrct2/ride/gentle/MonorailCycles.cpp
+++ b/src/openrct2/ride/gentle/MonorailCycles.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../world/Map.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/gentle/ObservationTower.cpp b/src/openrct2/ride/gentle/ObservationTower.cpp
index 068af07192..368123a237 100644
--- a/src/openrct2/ride/gentle/ObservationTower.cpp
+++ b/src/openrct2/ride/gentle/ObservationTower.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../Ride.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/gentle/SpaceRings.cpp b/src/openrct2/ride/gentle/SpaceRings.cpp
index 25f26cb3aa..125f6e0a8e 100644
--- a/src/openrct2/ride/gentle/SpaceRings.cpp
+++ b/src/openrct2/ride/gentle/SpaceRings.cpp
@@ -12,7 +12,7 @@
#include "../../entity/Guest.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../RideEntry.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/gentle/SpiralSlide.cpp b/src/openrct2/ride/gentle/SpiralSlide.cpp
index 713f80782f..25e42e43d1 100644
--- a/src/openrct2/ride/gentle/SpiralSlide.cpp
+++ b/src/openrct2/ride/gentle/SpiralSlide.cpp
@@ -10,7 +10,7 @@
#include "../../interface/Viewport.h"
#include "../../object/StationObject.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/shops/Facility.cpp b/src/openrct2/ride/shops/Facility.cpp
index 723cab78af..66a0bf1ed9 100644
--- a/src/openrct2/ride/shops/Facility.cpp
+++ b/src/openrct2/ride/shops/Facility.cpp
@@ -10,7 +10,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../Ride.h"
diff --git a/src/openrct2/ride/shops/Shop.cpp b/src/openrct2/ride/shops/Shop.cpp
index 8d5ca2fa33..6372598339 100644
--- a/src/openrct2/ride/shops/Shop.cpp
+++ b/src/openrct2/ride/shops/Shop.cpp
@@ -10,7 +10,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../Ride.h"
diff --git a/src/openrct2/ride/thrill/3dCinema.cpp b/src/openrct2/ride/thrill/3dCinema.cpp
index bb179e03bc..3f07430e45 100644
--- a/src/openrct2/ride/thrill/3dCinema.cpp
+++ b/src/openrct2/ride/thrill/3dCinema.cpp
@@ -10,7 +10,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/Enterprise.cpp b/src/openrct2/ride/thrill/Enterprise.cpp
index ddf6ab7183..f5b25ca126 100644
--- a/src/openrct2/ride/thrill/Enterprise.cpp
+++ b/src/openrct2/ride/thrill/Enterprise.cpp
@@ -12,7 +12,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/GoKarts.cpp b/src/openrct2/ride/thrill/GoKarts.cpp
index a07e24e020..3529db59fe 100644
--- a/src/openrct2/ride/thrill/GoKarts.cpp
+++ b/src/openrct2/ride/thrill/GoKarts.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../Ride.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/LaunchedFreefall.cpp b/src/openrct2/ride/thrill/LaunchedFreefall.cpp
index 006c0c493f..fb75df6822 100644
--- a/src/openrct2/ride/thrill/LaunchedFreefall.cpp
+++ b/src/openrct2/ride/thrill/LaunchedFreefall.cpp
@@ -11,7 +11,7 @@
#include "../../config/Config.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/thrill/MagicCarpet.cpp b/src/openrct2/ride/thrill/MagicCarpet.cpp
index 285535a44f..3641edc309 100644
--- a/src/openrct2/ride/thrill/MagicCarpet.cpp
+++ b/src/openrct2/ride/thrill/MagicCarpet.cpp
@@ -12,7 +12,7 @@
#include "../../object/StationObject.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/MotionSimulator.cpp b/src/openrct2/ride/thrill/MotionSimulator.cpp
index f2bfbf8b78..9fc7a2e9fb 100644
--- a/src/openrct2/ride/thrill/MotionSimulator.cpp
+++ b/src/openrct2/ride/thrill/MotionSimulator.cpp
@@ -11,7 +11,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/RotoDrop.cpp b/src/openrct2/ride/thrill/RotoDrop.cpp
index a54b1361cf..ec68353f13 100644
--- a/src/openrct2/ride/thrill/RotoDrop.cpp
+++ b/src/openrct2/ride/thrill/RotoDrop.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/thrill/SwingingInverterShip.cpp b/src/openrct2/ride/thrill/SwingingInverterShip.cpp
index c19fa22101..7340d1e6f1 100644
--- a/src/openrct2/ride/thrill/SwingingInverterShip.cpp
+++ b/src/openrct2/ride/thrill/SwingingInverterShip.cpp
@@ -12,7 +12,7 @@
#include "../../object/StationObject.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/SwingingShip.cpp b/src/openrct2/ride/thrill/SwingingShip.cpp
index 6204ab9e84..a030d9a157 100644
--- a/src/openrct2/ride/thrill/SwingingShip.cpp
+++ b/src/openrct2/ride/thrill/SwingingShip.cpp
@@ -12,7 +12,7 @@
#include "../../object/StationObject.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/thrill/TopSpin.cpp b/src/openrct2/ride/thrill/TopSpin.cpp
index 4fa0e7af79..84c9700206 100644
--- a/src/openrct2/ride/thrill/TopSpin.cpp
+++ b/src/openrct2/ride/thrill/TopSpin.cpp
@@ -12,7 +12,7 @@
#include "../../localisation/Localisation.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/thrill/Twist.cpp b/src/openrct2/ride/thrill/Twist.cpp
index df96f3f916..af20b093b7 100644
--- a/src/openrct2/ride/thrill/Twist.cpp
+++ b/src/openrct2/ride/thrill/Twist.cpp
@@ -12,7 +12,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Ride.h"
#include "../RideEntry.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/transport/Chairlift.cpp b/src/openrct2/ride/transport/Chairlift.cpp
index 2e85118973..85c6f1a26d 100644
--- a/src/openrct2/ride/transport/Chairlift.cpp
+++ b/src/openrct2/ride/transport/Chairlift.cpp
@@ -9,7 +9,8 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../world/Map.h"
#include "../Ride.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/transport/Lift.cpp b/src/openrct2/ride/transport/Lift.cpp
index 81d837b123..f7158dee74 100644
--- a/src/openrct2/ride/transport/Lift.cpp
+++ b/src/openrct2/ride/transport/Lift.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/transport/MiniatureRailway.cpp b/src/openrct2/ride/transport/MiniatureRailway.cpp
index 4328c7373f..0e84fdbff7 100644
--- a/src/openrct2/ride/transport/MiniatureRailway.cpp
+++ b/src/openrct2/ride/transport/MiniatureRailway.cpp
@@ -10,7 +10,7 @@
#include "../../common.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../sprites.h"
#include "../../world/Map.h"
#include "../RideData.h"
diff --git a/src/openrct2/ride/transport/Monorail.cpp b/src/openrct2/ride/transport/Monorail.cpp
index 2a2b666a96..2980e64823 100644
--- a/src/openrct2/ride/transport/Monorail.cpp
+++ b/src/openrct2/ride/transport/Monorail.cpp
@@ -12,7 +12,7 @@
#include "../../object/StationObject.h"
#include "../../paint/Boundbox.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../world/Map.h"
#include "../RideData.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/transport/SuspendedMonorail.cpp b/src/openrct2/ride/transport/SuspendedMonorail.cpp
index 45c419288b..ef2ac05141 100644
--- a/src/openrct2/ride/transport/SuspendedMonorail.cpp
+++ b/src/openrct2/ride/transport/SuspendedMonorail.cpp
@@ -11,7 +11,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../paint/tile_element/Paint.TileElement.h"
#include "../../sprites.h"
#include "../../world/Map.h"
diff --git a/src/openrct2/ride/water/DinghySlide.cpp b/src/openrct2/ride/water/DinghySlide.cpp
index 52bfa046a2..4f13eff459 100644
--- a/src/openrct2/ride/water/DinghySlide.cpp
+++ b/src/openrct2/ride/water/DinghySlide.cpp
@@ -9,7 +9,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/water/DinghySlideCovered.cpp b/src/openrct2/ride/water/DinghySlideCovered.cpp
index eaaee9aa1b..9e9102d5ac 100644
--- a/src/openrct2/ride/water/DinghySlideCovered.cpp
+++ b/src/openrct2/ride/water/DinghySlideCovered.cpp
@@ -9,7 +9,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/water/LogFlume.cpp b/src/openrct2/ride/water/LogFlume.cpp
index 12fc5d3986..f317be8a34 100644
--- a/src/openrct2/ride/water/LogFlume.cpp
+++ b/src/openrct2/ride/water/LogFlume.cpp
@@ -9,7 +9,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../../sprites.h"
#include "../Track.h"
#include "../TrackPaint.h"
diff --git a/src/openrct2/ride/water/RiverRapids.cpp b/src/openrct2/ride/water/RiverRapids.cpp
index 1671fd0a1d..6a97d50850 100644
--- a/src/openrct2/ride/water/RiverRapids.cpp
+++ b/src/openrct2/ride/water/RiverRapids.cpp
@@ -12,7 +12,7 @@
#include "../../config/Config.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../../scenario/Scenario.h"
#include "../../world/Map.h"
#include "../Track.h"
diff --git a/src/openrct2/ride/water/SplashBoats.cpp b/src/openrct2/ride/water/SplashBoats.cpp
index 570eec8fb3..26c777febc 100644
--- a/src/openrct2/ride/water/SplashBoats.cpp
+++ b/src/openrct2/ride/water/SplashBoats.cpp
@@ -11,7 +11,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/WoodenSupports.h"
#include "../Track.h"
#include "../TrackPaint.h"
#include "../Vehicle.h"
diff --git a/src/openrct2/ride/water/SubmarineRide.cpp b/src/openrct2/ride/water/SubmarineRide.cpp
index 5a78a890af..a9c10d903c 100644
--- a/src/openrct2/ride/water/SubmarineRide.cpp
+++ b/src/openrct2/ride/water/SubmarineRide.cpp
@@ -9,7 +9,7 @@
#include "../../interface/Viewport.h"
#include "../../paint/Paint.h"
-#include "../../paint/Supports.h"
+#include "../../paint/support/MetalSupports.h"
#include "../RideData.h"
#include "../Track.h"
#include "../TrackPaint.h"