From 33d239dc5c4e53ea6e4c8c4287652e72a5cea716 Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Sat, 18 Oct 2025 15:31:47 +0100 Subject: [PATCH] Fix hybrid coaster diag brakes not blocking supports consistently --- distribution/changelog.txt | 1 + .../paint/track/coaster/HybridCoaster.cpp | 16 ++-------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 3e610c4519..921b69f228 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -13,6 +13,7 @@ - Fix: [#25358] The Stand Up Roller Coaster left corkscrew does not block supports correctly. - Fix: [#25363] The Mine Train Coaster flat-to-steep track pieces do not block all metal supports. - Fix: [#25369] The Go-Karts medium turns and small flat and sloped turns do not block metal supports correctly. +- Fix: [#25370] The Hybrid Coaster diagonal brakes and block brakes do not block metal supports consistently. 0.4.27 (2025-10-04) ------------------------------------------------------------------------ diff --git a/src/openrct2/paint/track/coaster/HybridCoaster.cpp b/src/openrct2/paint/track/coaster/HybridCoaster.cpp index 88c537dc81..1c3663141a 100644 --- a/src/openrct2/paint/track/coaster/HybridCoaster.cpp +++ b/src/openrct2/paint/track/coaster/HybridCoaster.cpp @@ -1402,13 +1402,7 @@ namespace OpenRCT2::HybridRC { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); break; } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), - direction), - 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 1: @@ -1504,13 +1498,7 @@ namespace OpenRCT2::HybridRC { -16, -16, height }, { { -16, -16, height }, { 32, 32, 3 } }); break; } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), - direction), - 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 1: