From: divverent Date: Fri, 24 Sep 2010 10:36:53 +0000 (+0000) Subject: fix another bug in the prologic patch :) X-Git-Tag: xonotic-v0.1.0preview~229 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=dcfaf8c5c83feefe47da09ab11bb638fe5073379;p=xonotic%2Fdarkplaces.git fix another bug in the prologic patch :) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10485 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=8c6316428e12d958ece5d75d2f7c4d28fd6a1a03 --- diff --git a/snd_main.c b/snd_main.c index 5d61f51b..38deaaa8 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1889,7 +1889,8 @@ void S_UpdateAmbientSounds (void) if (snd_spatialization_prologic.integer != 0) { - chan->listener_volume[0] = chan->listener_volume[1] = (int)bound(0, chan->master_vol * ambient_level.value * snd_speakerlayout.listeners[i].ambientvolume * sqrt(0.5), 65536); + chan->listener_volume[0] = (int)bound(0, chan->master_vol * ambient_level.value * snd_speakerlayout.listeners[0].ambientvolume * sqrt(0.5), 65536); + chan->listener_volume[1] = (int)bound(0, chan->master_vol * ambient_level.value * snd_speakerlayout.listeners[1].ambientvolume * sqrt(0.5), 65536); for (i = 2;i < SND_LISTENERS;i++) chan->listener_volume[i] = 0; }