forked from rosebudai/OpenRCT2-Web
Fix where walls block the view of rides/scenery on the first tile next to the path (#26495)
This commit is contained in:
1 parent
86f282f7c0
commit
bf4810ea50
4 files changed
+6
-5
No files matched your search
+2
-2
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user