changed brush model API - now uses function pointers for some of the brush model...
[xonotic/darkplaces.git] / sv_phys.c
index c37fd21..63afdee 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -854,18 +854,18 @@ qboolean SV_CheckWater (edict_t *ent)
 
        ent->v->waterlevel = 0;
        ent->v->watertype = CONTENTS_EMPTY;
-       cont = Mod_PointContents(point, sv.worldmodel);
+       cont = sv.worldmodel->PointContents(sv.worldmodel, point);
        if (cont <= CONTENTS_WATER)
        {
                ent->v->watertype = cont;
                ent->v->waterlevel = 1;
                point[2] = ent->v->origin[2] + (ent->v->mins[2] + ent->v->maxs[2])*0.5;
-               cont = Mod_PointContents(point, sv.worldmodel);
+               cont = sv.worldmodel->PointContents(sv.worldmodel, point);
                if (cont <= CONTENTS_WATER)
                {
                        ent->v->waterlevel = 2;
                        point[2] = ent->v->origin[2] + ent->v->view_ofs[2];
-                       cont = Mod_PointContents(point, sv.worldmodel);
+                       cont = sv.worldmodel->PointContents(sv.worldmodel, point);
                        if (cont <= CONTENTS_WATER)
                                ent->v->waterlevel = 3;
                }
@@ -1136,7 +1136,7 @@ SV_CheckWaterTransition
 void SV_CheckWaterTransition (edict_t *ent)
 {
        int cont;
-       cont = Mod_PointContents(ent->v->origin, sv.worldmodel);
+       cont = sv.worldmodel->PointContents(sv.worldmodel, ent->v->origin);
        if (!ent->v->watertype)
        {
                // just spawned here