From 912b65ff74ffc1467fe303c8b70cc1e85d9e02b4 Mon Sep 17 00:00:00 2001 From: apartfromtime <42292382+apartfromtime@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:01:44 +1000 Subject: [PATCH 1/2] sound: True randomness True randomness allows producing a number twice. --- src/client/sound/ogg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/client/sound/ogg.c b/src/client/sound/ogg.c index c51f5cd9..9d65cc52 100644 --- a/src/client/sound/ogg.c +++ b/src/client/sound/ogg.c @@ -537,11 +537,6 @@ OGG_PlayTrack(const char *track, qboolean cdtrack, qboolean immediate) while (retries-- > 0 && newtrack < 2) { newtrack = randk() % (ogg_maxfileindex + 1); - - if (newtrack == curtrack) - { - newtrack = 0; - } } } break; } From 7fa653cae187af8a398bb0d3f1d5c1de69d5d2fd Mon Sep 17 00:00:00 2001 From: apartfromtime <42292382+apartfromtime@users.noreply.github.com> Date: Mon, 19 Aug 2024 21:03:30 +1000 Subject: [PATCH 2/2] console: Fix cursor timestep --- src/client/cl_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/cl_console.c b/src/client/cl_console.c index 23bf2115..c6551a83 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -513,7 +513,7 @@ Con_DrawInput(void) { if (i == linepos) { - if (cls.realtime & 8) + if ((cls.realtime >> 8) & 1) { ch = CON_INPUT_CURSOR; }