libsaria: Tune random next()
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
beb9019057
commit
5e456ad64c
|
@ -11,6 +11,8 @@
|
|||
#include <idle.h>
|
||||
#include <fs.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
static libsaria::Track outside_track;
|
||||
static libsaria::initdata *app_data;
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace libsaria
|
|||
return NULL;
|
||||
|
||||
if (check_flag(PL_RANDOM))
|
||||
cur += rand() % get_size();
|
||||
cur += rand() % ((get_size() * 3) / 4);
|
||||
else if (flags & PL_NO_DRAIN)
|
||||
cur++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue