eek, had the entity center-point calculation wrong. thanks, grievre

This commit is contained in:
Bill Currie 2003-12-09 04:29:12 +00:00
parent 991fc06360
commit e56e566bca
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;