1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

Fix #7210: Land tile smoothing occurs with edge tiles (#19400)

This commit is contained in:
Michael Steenbeek
2023-02-14 23:09:36 +01:00
committed by GitHub
parent b4dc2d3fe6
commit 3ac7858549
2 changed files with 5 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
- Change: [#19091] [Plugin] Add game action information to callback arguments of custom actions.
- Change: [#19233] Reduce lift speed minimum and maximum values for “Classic Wooden Coaster”.
- Fix: [#474] Mini golf window shows more players than there actually are (original bug).
- Fix: [#7210] Land tile smoothing occurs with edge tiles (original bug).
- Fix: [#17996] Finances window not cleared when starting some .park scenarios
- Fix: [#18260] Crash opening parks that have multiple tiles referencing the same banner entry.
- Fix: [#18467] “Selected only” Object Selection filter is active in Track Designs Manager, and cannot be toggled.

View File

@@ -452,6 +452,10 @@ static void ViewportSurfaceSmoothenEdge(
if (neighbour.tile_element == nullptr)
return;
// The edge row consists of invisible grass tiles. Do not attempt to smooth with them.
if (MapIsEdge(self.tile_coords.ToCoordsXY()) || MapIsEdge(neighbour.tile_coords.ToCoordsXY()))
return;
uint32_t maskImageBase = 0;
uint8_t neighbourCorners[2] = { 0 };
uint8_t ownCorners[2] = { 0 };