mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
eek, had the entity center-point calculation wrong. thanks, grievre
This commit is contained in:
parent
991fc06360
commit
e56e566bca
2 changed files with 2 additions and 2 deletions
|
@ -646,7 +646,7 @@ PF_findradius (progs_t *pr)
|
|||
emins = SVvector (ent, mins);
|
||||
emaxs = SVvector (ent, maxs);
|
||||
for (j = 0; j < 3; j++)
|
||||
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] - emaxs[j]);
|
||||
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] + emaxs[j]);
|
||||
if (DotProduct (eorg, eorg) > rad)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -646,7 +646,7 @@ PF_findradius (progs_t *pr)
|
|||
emins = SVvector (ent, mins);
|
||||
emaxs = SVvector (ent, maxs);
|
||||
for (j = 0; j < 3; j++)
|
||||
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] - emaxs[j]);
|
||||
eorg[j] = org[j] - eorigin[j] - 0.5 * (emins[j] + emaxs[j]);
|
||||
if (DotProduct (eorg, eorg) > rad)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue