mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 12:41:33 +00:00
Mantis 0000941:
o Added spectator check to the hitreg git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@185 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
65d4c67891
commit
3d42527a29
1 changed files with 3 additions and 1 deletions
|
@ -1375,7 +1375,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);
|
||||
|
|
Loading…
Reference in a new issue