From a51908607edc6b912ef94b973ced871a4c85c129 Mon Sep 17 00:00:00 2001 From: cypress Date: Thu, 30 Nov 2023 12:30:37 -0500 Subject: [PATCH] Don't spatialize sounds with no attenuation --- source/snd_dma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/snd_dma.c b/source/snd_dma.c index 9fcea7f..2b99885 100644 --- a/source/snd_dma.c +++ b/source/snd_dma.c @@ -388,8 +388,9 @@ void SND_Spatialize(channel_t *ch) vec3_t source_vec; sfx_t *snd; -// anything coming from the view entity will always be full volume - if (ch->entnum == cl.viewentity) + // anything coming from the view entity will always be full volume + // cypress -- added full volume for no attenuation. + if (ch->entnum == cl.viewentity || ch->dist_mult == 0) { ch->leftvol = ch->master_vol; ch->rightvol = ch->master_vol;