mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-12 19:07:55 +03:00
Reimplemented Kiloku's fix on some platforms only
This commit is contained in:
parent
c49f98a9a1
commit
6a2993f5d3
@ -19,6 +19,11 @@ void Rand_Init(void) {
|
||||
}
|
||||
|
||||
f32 Rand_ZeroOne(void) {
|
||||
#ifdef __SWITCH__ // Readded to prevent 0 seed
|
||||
if (sRandSeed1 == sRandSeed2 == sRandSeed3 == 0){
|
||||
Rand_Init();
|
||||
}
|
||||
#endif
|
||||
sRandSeed1 = (sRandSeed1 * 171) % 30269;
|
||||
sRandSeed2 = (sRandSeed2 * 172) % 30307;
|
||||
sRandSeed3 = (sRandSeed3 * 170) % 30323;
|
||||
|
Loading…
x
Reference in New Issue
Block a user