1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 03:05:24 +01:00

Fix chance of thunder effects being lower than vanilla

This commit is contained in:
matheusvb3
2025-09-25 15:33:07 -03:00
committed by GitHub
parent 9019f00039
commit 4bd911b472
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -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);