P_RandomFixed should return the same result

maybe fixes desynchs between 64bit and 32bit clients
see: https://git.do.srb2.org/bird/Kart-Public/-/commit/a7bbc76c7c94c37ea62fe338451f7f4b70487a19
This commit is contained in:
alufolie91 committed 2023-07-31 14:25:49 +02:00
1 parent 6bc1a6c515
commit dbfa2a8852
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ fixed_t P_RandomFixedD(const char *rfile, INT32 rline)
{
CONS_Printf("P_RandomFixed() at: %sp %d\n", rfile, rline);
#endif
return __internal_prng__();
return (INT32)((INT64)__internal_prng__());
}
/** Provides a random byte. Distribution is uniform.