From 4a65ca88fc0d0677dec93c3261560d903e7d3d58 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Fri, 10 Jun 2005 14:19:30 +0000 Subject: [PATCH] Added check to remove testing of spectators in the hitreg code. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@178 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.05/source/mod/AvHServerUtil.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/releases/3.05/source/mod/AvHServerUtil.cpp b/releases/3.05/source/mod/AvHServerUtil.cpp index ba3385f..20e3757 100644 --- a/releases/3.05/source/mod/AvHServerUtil.cpp +++ b/releases/3.05/source/mod/AvHServerUtil.cpp @@ -1375,7 +1375,10 @@ void AvHTraceLine(const Vector& vecStart, const Vector& vecEnd, IGNORE_MONSTERS edict_t* theEdict = pList[i]->edict(); - if (theEdict != pentIgnore) + + // tankefugl: Added check to remove testing of spectators + if ((!(pList[i]->pev->iuser1 > 0 || pList[i]->pev->flags & FL_SPECTATOR)) && theEdict != pentIgnore) +// if (theEdict != pentIgnore) { float t = NS_TraceLineAgainstEntity(pList[i]->entindex(), gpGlobals->time, theRayOrigin, theRayDirection);