From dbfa2a8852e5e77edce5574d290eef5bd0479404 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Mon, 31 Jul 2023 14:25:49 +0200 Subject: [PATCH] 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 --- src/m_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_random.c b/src/m_random.c index 3d46f76b7..d9a8cb6b0 100644 --- a/src/m_random.c +++ b/src/m_random.c @@ -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.