forked from rosebudai/OpenRCT2-Web
Change metal support joint interval magic number to const
This commit is contained in:
1 parent
15238bcd53
commit
ed59336da2
1 file changed
+2
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user