changed brush model API - now uses function pointers for some of the brush model...
[xonotic/darkplaces.git] / portals.c
index 339fd80..209e025 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);