]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Oops!
authorechon <echon@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Sep 2009 16:01:25 +0000 (16:01 +0000)
committerechon <echon@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 8 Sep 2009 16:01:25 +0000 (16:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9170 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index 236bb5e0ae80994d88dd7523c3c4d7328adea07d..83b05959d1a020a2348c32fce4dd02391f9cb5b7 100644 (file)
@@ -1377,7 +1377,7 @@ void SND_Spatialize(channel_t *ch, qboolean isstatic)
                                {
                                        if (cl.worldmodel
                                        && cl.worldmodel->brush.TraceLineOfSight
-                                       && !cl.worldmodel->brush.TraceLineOfSight(cl.worldmodel, listener_origin, source_vec))
+                                       && !cl.worldmodel->brush.TraceLineOfSight(cl.worldmodel, listener_origin, ch->origin))
                                        {
                                                vol *= 0.5f;
                                        }