From bf4810ea506d9c33e3faee821bd7ceb4ea9f5756 Mon Sep 17 00:00:00 2001 From: MarcelVos96 Date: Wed, 10 Jun 2026 20:49:31 +0200 Subject: [PATCH] Fix where walls block the view of rides/scenery on the first tile next to the path (#26495) --- assets.json | 4 ++-- distribution/changelog.txt | 1 + src/openrct2/entity/Guest.cpp | 4 ++-- src/openrct2/network/NetworkBase.cpp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/assets.json b/assets.json index 01b490105c..b681009050 100644 --- a/assets.json +++ b/assets.json @@ -16,7 +16,7 @@ "sha256": "dabb9787b1576342fca4dd9f64b3f8cfa04a7e6ce9c2bb9610f47b762905c858" }, "replays": { - "url": "https://github.com/OpenRCT2/replays/releases/download/v0.0.93/replays.zip", - "sha256": "5295f115045eb6945b36b48ca2105c7059e7f6cf8a88832997d6cf878817e1b5" + "url": "https://github.com/OpenRCT2/replays/releases/download/v0.0.94/replays.zip", + "sha256": "884bea28c8c6fe69b360d9700c6d571118e09c5fc0b4d216658808b8b23772d0" } } diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c7b3e88e7e..c8d29fa1df 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Feature: [#26308] Add all new track pieces to the inverted roller coaster. - Feature: [#26442] Add cheat to disable grass growing. +- Fix: [#26494] The limits for where walls on the path side of the first tile block the view of rides/scenery are wrong (original bug). 0.5.2 (2026-06-07) ------------------------------------------------------------------------ diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 2272680fb5..d77afb01f2 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -6554,6 +6554,7 @@ namespace OpenRCT2 return false; } + // TODO: Extract loop A do { // Ghosts are purely this-client-side and should not cause any interaction, @@ -6570,8 +6571,7 @@ namespace OpenRCT2 auto wallEntry = tileElement->asWall()->GetEntry(); if (wallEntry == nullptr || (wallEntry->flags2 & WALL_SCENERY_2_IS_OPAQUE)) continue; - // TODO: Check whether this shouldn't be <=, as the other loops use. If so, also extract as loop A. - if (guest.NextLoc.z + (4 * kCoordsZStep) >= tileElement->getBaseZ()) + if (guest.NextLoc.z + (4 * kCoordsZStep) <= tileElement->getBaseZ()) continue; if (guest.NextLoc.z + (1 * kCoordsZStep) >= tileElement->getClearanceZ()) continue; diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index 081a98f2fe..39a93ddca3 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -48,7 +48,7 @@ // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -constexpr uint8_t kStreamVersion = 1; +constexpr uint8_t kStreamVersion = 2; const std::string kStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kStreamVersion);