mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-04-28 12:27:59 +03:00
Reimplemented Kiloku's fix on some platforms only
This commit is contained in:
parent
c49f98a9a1
commit
6a2993f5d3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue