From ac2e6a887c6843ad209156f21ed931cc68e6a7b0 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 23 Sep 2010 04:40:22 +0000 Subject: [PATCH] fix ambient sounds in prologic git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10481 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snd_main.c b/snd_main.c index 685316ca..98fa0d15 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1371,8 +1371,11 @@ void SND_Spatialize(channel_t *ch, qboolean isstatic) ch->prologic_invert = 1; if (snd_spatialization_prologic.integer != 0) { - vol = mastervol * snd_speakerlayout.listeners[i].ambientvolume * sqrt(0.5); - ch->listener_volume[0] = ch->listener_volume[1] = (int)bound(0, vol, 255); + for (i = 0;i < 2;i++) + { + vol = mastervol * snd_speakerlayout.listeners[i].ambientvolume * sqrt(0.5); + ch->listener_volume[i] = (int)bound(0, vol, 255); + } for (i = 2;i < SND_LISTENERS;i++) ch->listener_volume[i] = 0; } -- 2.39.2