mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
Take into account that the player origin may not be in his center
This is another corner case that looks more correct in baseq2. This was reported by maraakate in yquake2 issue #160.
This commit is contained in:
parent
fe0f0ad86f
commit
5c004e2c22
1 changed files with 3 additions and 3 deletions
|
@ -441,9 +441,9 @@ M_CatagorizePosition(edict_t *ent)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get waterlevel */
|
/* get waterlevel */
|
||||||
point[0] = ent->s.origin[0];
|
point[0] = (ent->absmax[0] + ent->absmin[0])/2;
|
||||||
point[1] = ent->s.origin[1];
|
point[1] = (ent->absmax[1] + ent->absmin[1])/2;
|
||||||
point[2] = ent->s.origin[2] + ent->mins[2] + 1;
|
point[2] = ent->absmin[2] + 2;
|
||||||
cont = gi.pointcontents(point);
|
cont = gi.pointcontents(point);
|
||||||
|
|
||||||
if (!(cont & MASK_WATER))
|
if (!(cont & MASK_WATER))
|
||||||
|
|
Loading…
Reference in a new issue