1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #23135: Tree placement has noticable patterns

This commit is contained in:
Aaron van Geffen
2025-01-02 12:38:33 +01:00
parent c0505bb164
commit 167daaa1d2
2 changed files with 4 additions and 0 deletions

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.

View File

@@ -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++)
{