]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
added SV_PointContents
[xonotic/darkplaces.git] / sv_phys.c
index c37fd21ef4ad1cdf440ce00b73ee92ebf10ba8b7..76959a5b7a7009aa9a18eaefe15e3cc7342ec2ea 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_PointContents(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_PointContents(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_PointContents(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_PointContents(ent->v->origin);
        if (!ent->v->watertype)
        {
                // just spawned here