From 58e2da72c62992e40d1cafb84505992645a357eb Mon Sep 17 00:00:00 2001 From: Haven Kim Date: Sun, 23 Oct 2022 13:32:59 -0700 Subject: [PATCH] Fix #18379 : Mini Golf doesn't render Special E track's tunnel correctly (#18404) Co-authored-by: Gymnasiast --- distribution/changelog.txt | 1 + src/openrct2/ride/gentle/MiniGolf.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e988831fb1..7c51077234 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -16,6 +16,7 @@ - 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. +- Fix: [#18379] Tunnel entrances for underground Mini Golf Hole E are not rendered correctly. 0.4.2 (2022-10-05) ------------------------------------------------------------------------ diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp index f58aea5f4e..6c33a06c60 100644 --- a/src/openrct2/ride/gentle/MiniGolf.cpp +++ b/src/openrct2/ride/gentle/MiniGolf.cpp @@ -1073,13 +1073,13 @@ static void PaintMiniGolfHoleE( switch ((direction << 4) | trackSequence) { - case 0x00: - case 0x12: + case (0 << 4 | 0): + case (3 << 4 | 2): PaintUtilPushTunnelLeft(session, height, TUNNEL_PATH_AND_MINI_GOLF); break; - case 0x02: - case 0x30: + case (2 << 4 | 2): + case (3 << 4 | 0): PaintUtilPushTunnelRight(session, height, TUNNEL_PATH_AND_MINI_GOLF); break; }