From 3fa7d59a1c50f18edca79c7b7e2a80c5ad1df737 Mon Sep 17 00:00:00 2001 From: Rik Smeets <30838294+rik-smeets@users.noreply.github.com> Date: Sun, 9 Oct 2022 17:49:01 +0200 Subject: [PATCH] Fix #18070: Entrances/exits clip through walls (#18266) Entrance or exit buildings placed underground could clip through walls. --- distribution/changelog.txt | 1 + src/openrct2/paint/tile_element/Paint.Entrance.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5be0aa2d96..1332d4c83b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Fix: [#14312] Research ride type message incorrect. - Fix: [#17853] Invention name tears while being dragged. - Fix: [#18064] Unable to dismiss notification messages. +- Fix: [#18070] Underground entrance/exit shows through terrain walls (original bug). - Fix: [#18122] Ghosts count towards “Great scenery!” guest thought. - Fix: [#18134] Underground on-ride photo section partially clips through adjacent terrain edge. - Fix: [#18257] Guests ‘waiting’ on extended railway crossings. diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp index ca22edc164..6c9d8e0ff4 100644 --- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp +++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp @@ -162,7 +162,7 @@ static void PaintRideEntranceExit(paint_session& session, uint8_t direction, int CoordsXYZ boundBoxLength = { (direction & 1) ? 2 : 28, (direction & 1) ? 28 : 2, - isExit ? 35 : 51, + isExit ? 32 : 48, }; // Back