mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-13 03:17:43 +03:00
FIxed rand on GCC
Some checks failed
GenerateBuilds / build-switch (push) Has been cancelled
GenerateBuilds / generate-port-o2r (push) Has been cancelled
GenerateBuilds / build-windows (push) Has been cancelled
GenerateBuilds / build-macos (push) Has been cancelled
GenerateBuilds / build-linux (push) Has been cancelled
Some checks failed
GenerateBuilds / build-switch (push) Has been cancelled
GenerateBuilds / generate-port-o2r (push) Has been cancelled
GenerateBuilds / build-windows (push) Has been cancelled
GenerateBuilds / build-macos (push) Has been cancelled
GenerateBuilds / build-linux (push) Has been cancelled
This commit is contained in:
parent
6a2993f5d3
commit
0798df9037
@ -19,7 +19,7 @@ void Rand_Init(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
f32 Rand_ZeroOne(void) {
|
f32 Rand_ZeroOne(void) {
|
||||||
#ifdef __SWITCH__ // Readded to prevent 0 seed
|
#if defined(__SWITCH__) || defined(__linux__)
|
||||||
if (sRandSeed1 == sRandSeed2 == sRandSeed3 == 0){
|
if (sRandSeed1 == sRandSeed2 == sRandSeed3 == 0){
|
||||||
Rand_Init();
|
Rand_Init();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user