summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-03-05 20:47:14 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-03-05 20:47:14 -0600
commit0798df90376a88adde7c18ab6adb650f45320c80 (patch)
tree20ab74e3d8b5379ec62cf709722e1feabebd7dbe
parent6a2993f5d324353f9930c55dc6a4910630c7fa92 (diff)
FIxed rand on GCC
-rw-r--r--src/sys/sys_math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/sys_math.c b/src/sys/sys_math.c
index f0cda198..c085aea2 100644
--- a/src/sys/sys_math.c
+++ b/src/sys/sys_math.c
@@ -19,7 +19,7 @@ void Rand_Init(void) {
}
f32 Rand_ZeroOne(void) {
-#ifdef __SWITCH__ // Readded to prevent 0 seed
+#if defined(__SWITCH__) || defined(__linux__)
if (sRandSeed1 == sRandSeed2 == sRandSeed3 == 0){
Rand_Init();
}