the C side of the fix for the field gen weird spot for a standing player

This commit is contained in:
Bill Currie 2001-07-27 04:50:53 +00:00
parent c834185fbb
commit 6b43d4543d

View file

@ -845,8 +845,15 @@ SV_TestPlayerPosition (edict_t *ent, vec3_t origin)
continue;
// get the clipping hull
hull = SV_HullForEntity (check, SVFIELD (ent, mins, vector),
SVFIELD (ent, maxs, vector), offset);
if (sv_fields.rotated_bbox != -1
&& SVFIELD (ent, rotated_bbox, integer)) {
extern hull_t pf_hull_list[];
hull = &pf_hull_list[SVFIELD (ent, rotated_bbox, integer) - 1];
VectorCopy (SVFIELD (ent, origin, vector), offset);
} else {
hull = SV_HullForEntity (check, SVFIELD (ent, mins, vector),
SVFIELD (ent, maxs, vector), offset);
}
VectorSubtract (origin, offset, offset);