seperate rand instances for each thread
[carveJwlIkooP6JGAAIwe30JlM.git] / player_ragdoll.c
index ac6e90240fc9fd3a6743dafa057b246777d86da5..f0a6f88c7b5de75bd31888f0fe70a699d6e7d72b 100644 (file)
@@ -436,7 +436,8 @@ static void player_ragdoll_iter( struct player_ragdoll *rd ){
    if( stress ){
       temp_filter = 20;
       audio_lock();
-      audio_oneshot_3d( &audio_hits[vg_randu32()%5], stress->co, 20.0f, 1.0f );
+      audio_oneshot_3d( &audio_hits[vg_randu32(&vg.rand)%5], 
+                        stress->co, 20.0f, 1.0f );
       audio_unlock();
    }
 }