1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Smooth map based on inferred PNG image size, not leftover setting (#24782)

This commit is contained in:
Aaron van Geffen
2025-07-16 20:42:54 +02:00
committed by GitHub
parent ecc02bd4e6
commit 11ae2371ea
2 changed files with 5 additions and 4 deletions

View File

@@ -156,9 +156,9 @@ namespace OpenRCT2::World::MapGenerator
HeightMap dest = _heightMapData;
// Get technical map size, +2 for the black tiles around the map
auto maxWidth = static_cast<int32_t>(dest.width + 2);
auto maxHeight = static_cast<int32_t>(dest.height + 2);
MapInit({ maxHeight, maxWidth });
auto mapWidth = static_cast<int32_t>(dest.width + 2);
auto mapHeight = static_cast<int32_t>(dest.height + 2);
MapInit({ mapHeight, mapWidth });
if (settings->smooth_height_map)
{
@@ -236,7 +236,7 @@ namespace OpenRCT2::World::MapGenerator
if (settings->smoothTileEdges)
{
// Set the tile slopes so that there are no cliffs
smoothMap(settings->mapSize, smoothTileWeak);
smoothMap({ mapWidth, mapHeight }, smoothTileWeak);
}
}
} // namespace OpenRCT2::World::MapGenerator