From 000bb021c3d3fc61fee17bb4ae8fcdf0a2ef1c7c Mon Sep 17 00:00:00 2001 From: tankefugl <tankefugl@67975925-1194-0748-b3d5-c16f83f1a3a1> Date: Sun, 12 Jun 2005 12:39:32 +0000 Subject: [PATCH] Mantis 0000941: o Added check to remove testing of spectators in the hitreg code git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@182 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/mod/AvHServerUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/source/mod/AvHServerUtil.cpp b/main/source/mod/AvHServerUtil.cpp index d0068563..3fd40500 100644 --- a/main/source/mod/AvHServerUtil.cpp +++ b/main/source/mod/AvHServerUtil.cpp @@ -1193,7 +1193,9 @@ void AvHTraceLine(const Vector& vecStart, const Vector& vecEnd, IGNORE_MONSTERS edict_t* theEdict = pList[i]->edict(); - if (theEdict != pentIgnore) + // tankefugl: 0000941 -- 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);