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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user