X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sv_phys.c;h=63afdeeabb1bdfd0ff612d964495b98482645e68;hp=c37fd21ef4ad1cdf440ce00b73ee92ebf10ba8b7;hb=fdfa815d659f4ceec149ce3f907c107f38022c3d;hpb=dda9525d00cbd81ad257870fbcb60079e11e367f diff --git a/sv_phys.c b/sv_phys.c index c37fd21e..63afdeea 100644 --- 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