Fix chance of thunder effects being lower than vanilla

This commit is contained in:
matheusvb3 authored and GitHub committed 2025-09-25 18:33:07 +00:00
1 parent 9019f00039
commit 4bd911b472
2 files changed
+2 -1

No files matched your search

+1
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)
------------------------------------------------------------------------
+1 -1
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);