From cfaff31afff0903189c34290383f91052babcb16 Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Wed, 16 Apr 2025 12:30:34 +0100 Subject: [PATCH] Fix narrow station base drawing with incorrect rotation --- distribution/changelog.txt | 1 + src/openrct2/ride/TrackPaint.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5f1882e678..97a6c69717 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -8,6 +8,7 @@ - Fix: [#23108] Missing pieces on Hypercoaster and Hyper-Twister, even with the ‘all drawable track pieces’ cheat enabled. - Fix: [#24013] Failure to load a scenario preview image (minimap) could lead to an uncaught exception error message. - Fix: [#24142] [Plugin] Track origin is miscalculated on downward slopes. +- Fix: [#24220] Narrow station platforms have missing sides on certain rotations. 0.4.21 (2025-04-05) ------------------------------------------------------------------------ diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 23c0a405fe..b532da97ad 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -741,7 +741,7 @@ bool TrackPaintUtilDrawNarrowStationPlatform( if (direction & 1) { PaintAddImageAsParent( - session, colour.WithIndex(kStationBaseTypeSpriteIndexes[EnumValue(baseType)][0]), { 0, 0, height + baseOffsetZ }, + session, colour.WithIndex(kStationBaseTypeSpriteIndexes[EnumValue(baseType)][1]), { 0, 0, height + baseOffsetZ }, { { 0, 2, height }, { 32, 28, 1 } }); bool hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);