mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-21 20:21:09 +00:00
sound: True randomness
True randomness allows producing a number twice.
This commit is contained in:
parent
6066b3c979
commit
912b65ff74
1 changed files with 0 additions and 5 deletions
|
@ -537,11 +537,6 @@ OGG_PlayTrack(const char *track, qboolean cdtrack, qboolean immediate)
|
||||||
while (retries-- > 0 && newtrack < 2)
|
while (retries-- > 0 && newtrack < 2)
|
||||||
{
|
{
|
||||||
newtrack = randk() % (ogg_maxfileindex + 1);
|
newtrack = randk() % (ogg_maxfileindex + 1);
|
||||||
|
|
||||||
if (newtrack == curtrack)
|
|
||||||
{
|
|
||||||
newtrack = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue