From ed59336da2240fda2ba419f6dac90ffca09101d5 Mon Sep 17 00:00:00 2001 From: mix Date: Fri, 15 Aug 2025 06:40:59 +0100 Subject: [PATCH] Change metal support joint interval magic number to const --- src/openrct2/paint/support/MetalSupports.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index c715dd1c6b..8cb59522a8 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -283,6 +283,7 @@ constexpr MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount constexpr const int32_t kMetalSupportBaseHeight = 6; constexpr const int32_t kMetalSupportMaxSectionHeight = 16; +constexpr const int32_t kMetalSupportJointInterval = 4; static inline MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction); @@ -403,7 +404,7 @@ static bool MetalSupportsPaintSetupCommon( break; uint32_t imageIndex = supportBeamImageIndex + beamLength - 1; - if (count % 4 == 0 && beamLength == kMetalSupportMaxSectionHeight) + if (count % kMetalSupportJointInterval == 0 && beamLength == kMetalSupportMaxSectionHeight) imageIndex++; PaintAddImageAsParent(