changed brush model API - now uses function pointers for some of the brush model...
[xonotic/darkplaces.git] / snd_dma.c
index a3edbbf..3470723 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;
 
-       l = Mod_PointInLeaf (listener_origin, cl.worldmodel);
+       l = cl.worldmodel->PointInLeaf(cl.worldmodel, listener_origin);
        if (!l)
                return;