*/
VG_STATIC void player_ragdoll_iter( struct player_ragdoll *rd )
{
- world_instance *world = get_active_world();
+ world_instance *world = world_current_instance();
int run_sim = 0;
ragdoll_frame ++;
if( stress ){
temp_filter = 20;
audio_lock();
- audio_oneshot_3d( &audio_hits[rand()%5], stress->co, 20.0f, 1.0f );
+ audio_oneshot_3d( &audio_hits[vg_randu32()%5], stress->co, 20.0f, 1.0f );
audio_unlock();
}
}