X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=snd_main.c;h=62807eb0983a79cb7529913aea7aaf29b46b5599;hb=5e5a0dc6a799dea2883254396414e6c3817f862f;hp=e435485e48e6de75d263bc2d49de8331eb60774e;hpb=ad37bc7de1dce1d858f74df2d70dc214983fb934;p=xonotic%2Fdarkplaces.git diff --git a/snd_main.c b/snd_main.c index e435485e..62807eb0 100644 --- a/snd_main.c +++ b/snd_main.c @@ -1502,7 +1502,7 @@ static void SND_Spatialize_WithSfx(channel_t *ch, qboolean isstatic, sfx_t *sfx) if(snd_spatialization_occlusion.integer & 2) if(!occluded) - if(cl.worldmodel && cl.worldmodel->brush.TraceLineOfSight && !cl.worldmodel->brush.TraceLineOfSight(cl.worldmodel, listener_origin, ch->origin)) + if(cl.worldmodel && cl.worldmodel->brush.TraceLineOfSight && !cl.worldmodel->brush.TraceLineOfSight(cl.worldmodel, listener_origin, ch->origin, ch->origin, ch->origin)) occluded = true; } if(occluded)