Reimplemented Kiloku's fix on some platforms only

This commit is contained in:
KiritoDv 2025-03-05 20:36:04 -06:00
parent c49f98a9a1
commit 6a2993f5d3

View File

@ -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;