]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - portals.c
sounds now follow their owner (so riding a lift doesn't leave the sound at the start...
[xonotic/darkplaces.git] / portals.c
index 339fd80239a2a6ebb6885697499f68ade61b5689..209e025c6a0b82c40bc08cf10a03f0e7fd7c443d 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -195,7 +195,7 @@ int Portal_CheckPolygon(model_t *model, vec3_t eye, float *polypoints, int numpo
        Mod_CheckLoaded(model);
        Portal_PolygonRecursiveMarkLeafs(model->nodes, polypoints, numpoints);
 
-       eyeleaf = Mod_PointInLeaf(eye, model);
+       eyeleaf = model->PointInLeaf(model, eye);
 
        // find the center by averaging
        VectorClear(center);