1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +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

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