ref: gl: libc rand() does better job at randomizing
This commit is contained in:
parent
882fcc152c
commit
46889ed453
1 changed files with 3 additions and 3 deletions
|
@ -957,9 +957,9 @@ void R_AnimateRipples( void )
|
||||||
|
|
||||||
g_ripple.oldtime = g_ripple.time;
|
g_ripple.oldtime = g_ripple.time;
|
||||||
|
|
||||||
x = gEngfuncs.COM_RandomLong( 0, 0x7fff );
|
x = rand() & 0x7fff;
|
||||||
y = gEngfuncs.COM_RandomLong( 0, 0x7fff );
|
y = rand() & 0x7fff;
|
||||||
val = gEngfuncs.COM_RandomLong( 0, 0x3ff );
|
val = rand() & 0x3ff;
|
||||||
|
|
||||||
R_SpawnNewRipple( x, y, val );
|
R_SpawnNewRipple( x, y, val );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue