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] 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; }