Fix #23135: Tree placement has noticable patterns

This commit is contained in:
Aaron van Geffen committed 2025-01-02 12:38:33 +01:00
1 parent c0505bb164
commit 167daaa1d2
2 files changed
+4

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
- Change: [#23413] The max number of park entrance objects has been raised to 255.
- Fix: [#1122] Trains spawned on a cable lift hill will fall down and crash (original bug).
- Fix: [#22742, #22793] In game console does not handle format tokens properly.
- Fix: [#23135] Map generator tree placement has noticable patterns.
- Fix: [#23286] Currency formatted incorrectly in the in game console.
- Fix: [#23348] Console set commands don't print output properly.
- Fix: [#23376] Peeps with balloons, hats and umbrellas may leave artifacts on screen.
@@ -147,6 +147,9 @@ namespace OpenRCT2::World::MapGenerator
// Place trees
float treeToLandRatio = static_cast<float>(settings->treeToLandRatio) / 100.0f;
// Randomise simplex noise
NoiseRand();
auto& gameState = GetGameState();
for (int32_t y = 1; y < gameState.MapSize.y - 1; y++)
{