From ec9c8dba1b2b08cc393448187281df6831cf8d8a Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Sun, 27 Aug 2023 00:56:35 +0200 Subject: [PATCH] Revert "P_RandomFixed should return the same result" goddamit, it seems to cause desynchs in rare cases and here i thought it may help with desynchs --- 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 d9a8cb6b0..3d46f76b7 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 (INT32)((INT64)__internal_prng__()); + return __internal_prng__(); } /** Provides a random byte. Distribution is uniform.