From 045caacfee51a9308ceeeb953bc60ec01c0c890b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 12 Jan 2024 03:18:59 +0300 Subject: [PATCH] engine: client: drop skipping random 0.1 second of an ambient sound --- engine/client/s_main.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/engine/client/s_main.c b/engine/client/s_main.c index 718014b8..7d9a2455 100644 --- a/engine/client/s_main.c +++ b/engine/client/s_main.c @@ -648,20 +648,6 @@ void S_StartSound( const vec3_t pos, int ent, int chan, sound_t handle, float fv // Init client entity mouth movement vars SND_InitMouth( ent, chan ); - - for( ch_idx = NUM_AMBIENTS, check = channels + NUM_AMBIENTS; ch_idx < MAX_DYNAMIC_CHANNELS; ch_idx++, check++) - { - if( check == target_chan ) continue; - - if( check->sfx == sfx && !check->pMixer.sample ) - { - // skip up to 0.1 seconds of audio - int skip = COM_RandomLong( 0, (long)( 0.1f * check->sfx->cache->rate )); - - S_SetSampleStart( check, sfx->cache, skip ); - break; - } - } } /*