]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another bug in the prologic patch :)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 24 Sep 2010 10:36:53 +0000 (10:36 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 24 Sep 2010 10:36:53 +0000 (10:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10485 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index 5d61f51bd25beb972d54563dbb65d4683ca16f50..38deaaa8ab9b8b71f2352df2f6dd96ffa85e5dee 100644 (file)
@@ -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;
                }