Revert changes of rand() to random() as random() was redefined in quake3.

This commit is contained in:
Thilo Schulz 2009-05-31 20:24:10 +00:00
parent b40f1507ea
commit e4d0c14f70
5 changed files with 17 additions and 11 deletions

View file

@ -44,10 +44,12 @@ void R_NoiseInit( void )
{
int i;
srand( 1001 );
for ( i = 0; i < NOISE_SIZE; i++ )
{
s_noise_table[i] = ( float ) ( ( ( random() / ( float ) RAND_MAX ) * 2.0 - 1.0 ) );
s_noise_perm[i] = ( unsigned char ) ( random() / ( float ) RAND_MAX * 255 );
s_noise_table[i] = ( float ) ( ( ( rand() / ( float ) RAND_MAX ) * 2.0 - 1.0 ) );
s_noise_perm[i] = ( unsigned char ) ( rand() / ( float ) RAND_MAX * 255 );
}
}