mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
the C side of the fix for the field gen weird spot for a standing player
This commit is contained in:
parent
c834185fbb
commit
6b43d4543d
1 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue