mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +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;
|
continue;
|
||||||
|
|
||||||
// get the clipping hull
|
// get the clipping hull
|
||||||
hull = SV_HullForEntity (check, SVFIELD (ent, mins, vector),
|
if (sv_fields.rotated_bbox != -1
|
||||||
SVFIELD (ent, maxs, vector), offset);
|
&& 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);
|
VectorSubtract (origin, offset, offset);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue