mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix #6115: Random title screen music not random on launch
The parity of the first random value is predictable (always even).
This commit is contained in:
committed by
Michael Steenbeek
parent
ba06296392
commit
35e7e6cbc0
@@ -407,6 +407,8 @@ void util_srand(sint32 source) {
|
||||
srand1 = srand0 ^ (source >> 24);
|
||||
srand2 = srand1 ^ (source >> 16);
|
||||
srand3 = srand2 ^ (source >> 8);
|
||||
|
||||
util_rand(); // skip the first value as it's parity is predictable (always even).
|
||||
}
|
||||
|
||||
uint32 util_rand() {
|
||||
|
||||
Reference in New Issue
Block a user