mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix #20134: Don't update grass length outside of the actual map
This commit is contained in:
@@ -1335,6 +1335,9 @@ void MapUpdateTiles()
|
||||
for (int32_t blockX = 0; blockX < gMapSize.x; blockX += 256)
|
||||
{
|
||||
auto mapPos = TileCoordsXY{ blockX + x, blockY + y }.ToCoordsXY();
|
||||
if (MapIsEdge(mapPos))
|
||||
continue;
|
||||
|
||||
auto* surfaceElement = MapGetSurfaceElementAt(mapPos);
|
||||
if (surfaceElement != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user