From 6103d00dce613f52e6b35c8bf5371419e4354953 Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Tue, 18 Feb 2025 21:21:53 +0000 Subject: [PATCH] Fix #18711: Underground park entrance sides can cause glitching --- distribution/changelog.txt | 1 + src/openrct2/paint/tile_element/Paint.Entrance.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 96f12f74b5..bb894624ef 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#16357] Chairlift station covers draw incorrectly. - Fix: [#16657] Mine Ride right S-bend uses Mini Roller Coaster sprite (original bug). - Fix: [#18436] Scenery on the same tile as steep to vertical track can draw over the track (original bug). +- Fix: [#18711] Park entrances with their sides underground can cause glitching. - Fix: [#21768] Dirty blocks debug overlay is rendered incorrectly on high DPI screens. - Fix: [#22229] Opening a park save file from a newer version of OpenRCT2 yields an unhelpful error message. - Fix: [#22617] Sloped Wooden and Side-Friction supports draw out of order when built directly above diagonal track pieces (original bug). diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp index 473b2f26ac..dccb0f08f4 100644 --- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp +++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp @@ -323,9 +323,8 @@ static void PaintParkEntrance(PaintSession& session, uint8_t direction, int32_t if (entrance != nullptr) { auto imageIndex = entrance->GetImage(sequence, direction); - auto y = ((direction / 2 + sequence / 2) & 1) ? 26 : 32; PaintAddImageAsParent( - session, imageTemplate.WithIndex(imageIndex), { 0, 0, height }, { { 3, 3, height }, { 26, y, 79 } }); + session, imageTemplate.WithIndex(imageIndex), { 0, 0, height }, { { 3, 3, height }, { 26, 26, 79 } }); } break; }