]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_dma.c
changed brush model API - now uses function pointers for some of the brush model...
[xonotic/darkplaces.git] / snd_dma.c
index a3edbbfb8f2ed8098952e1e67559620d0d3f078c..3470723f68c01a3f62a598598cec638fe4ba400d 100644 (file)
--- a/snd_dma.c
+++ b/snd_dma.c
@@ -677,7 +677,7 @@ void S_UpdateAmbientSounds (void)
        if (!snd_ambient || !cl.worldmodel || ambient_level.value <= 0)
                return;
 
        if (!snd_ambient || !cl.worldmodel || ambient_level.value <= 0)
                return;
 
-       l = Mod_PointInLeaf (listener_origin, cl.worldmodel);
+       l = cl.worldmodel->PointInLeaf(cl.worldmodel, listener_origin);
        if (!l)
                return;
 
        if (!l)
                return;