From 4bd911b47263eb0c9a7143634bf42016a28e55cd Mon Sep 17 00:00:00 2001 From: matheusvb3 <98937378+matheusvb3@users.noreply.github.com> Date: Thu, 25 Sep 2025 15:33:07 -0300 Subject: [PATCH] Fix chance of thunder effects being lower than vanilla --- distribution/changelog.txt | 1 + src/openrct2/world/Climate.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 9981d42651..865bea0114 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -22,6 +22,7 @@ - Fix: [#25173] Desync when placing a park entrance in multiplayer. - Fix: [#25179] The LIM Launched Roller Coaster inline twists have incorrect wooden support clearance heights (original bug). - Fix: [#25207] Building a block brake on an LIM coaster does not automatically switch it to powered launch block sectioned mode. +- Fix: [#25238] The chance of thunder and lightning effects happening is lower than vanilla. 0.4.26 (2025-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/world/Climate.cpp b/src/openrct2/world/Climate.cpp index 02917f6676..a142484ef5 100644 --- a/src/openrct2/world/Climate.cpp +++ b/src/openrct2/world/Climate.cpp @@ -211,7 +211,7 @@ void ClimateUpdate() { // Create new thunder and lightning. Their amount is scaled inversely proportional // to the game speed, otherwise they become annoying at very high speeds - if (uint32_t randomNumber = UtilRand(); (randomNumber & 0xFFFF) <= (0x1B4u >> gGameSpeed)) + if (uint32_t randomNumber = UtilRand(); (randomNumber & 0xFFFF) <= (0x1B4u >> (gGameSpeed - 1))) { randomNumber >>= 16; _thunderTimer = 43 + (randomNumber % 64);