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