From 1f75cdb27553fed7e989016ec7d2354737f4ddb2 Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Tue, 21 Oct 2025 19:55:06 +0100 Subject: [PATCH] Fix lay down roller coaster left corkscrew supports wrong at one angle --- distribution/changelog.txt | 1 + .../track/coaster/CorkscrewRollerCoaster.cpp | 32 +++++-------------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 25c94d052c..ea3afa998a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -22,6 +22,7 @@ - Fix: [#25370] The Hybrid Coaster diagonal brakes and block brakes do not block metal supports consistently. - Fix: [#25371] The Wooden Roller Coaster small banked turns block too many metal supports. - Fix: [#25378] The land tool sometimes allows land to be raised through a maze. +- Fix: [#25380] The Lay-down Roller Coaster left corkscrew supports are incorrect at one angle (original bug). - Fix: [#25388] The Shortcut Keys window uses the wrong colours for separators, scrollbars and buttons. 0.4.27 (2025-10-04) diff --git a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp index cc1e53eacc..b26a65204f 100644 --- a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp @@ -10567,32 +10567,16 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( { { 0, 6, height + 4 }, { 32, 20, 3 } }); break; } - - if (direction == 2) - { - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - direction), - 0xFFFF, 0); - } MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::centre, direction, 0, height, session.SupportColours); - if (direction != 2) - { - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - direction), - 0xFFFF, 0); - } - + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); if (direction == 0 || direction == 3) { PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat);