From e56e566bcac0a22718aeb299afd169ed7f08d7f8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 9 Dec 2003 04:29:12 +0000 Subject: [PATCH] eek, had the entity center-point calculation wrong. thanks, grievre --- nq/source/sv_pr_cmds.c | 2 +- qw/source/sv_pr_cmds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/sv_pr_cmds.c b/nq/source/sv_pr_cmds.c index df5505acd..dfcfe1ee3 100644 --- a/nq/source/sv_pr_cmds.c +++ b/nq/source/sv_pr_cmds.c @@ -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; diff --git a/qw/source/sv_pr_cmds.c b/qw/source/sv_pr_cmds.c index 3db153dc2..8ba244179 100644 --- a/qw/source/sv_pr_cmds.c +++ b/qw/source/sv_pr_cmds.c @@ -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;