why would this not ignore players

This commit is contained in:
LightCat 2018-08-21 14:21:27 +02:00
parent 1d8cef9520
commit 448d676007

View File

@ -1,4 +1,4 @@
/*
fixi/*
* trace.cpp
*
* Created on: Oct 10, 2016
@ -42,6 +42,8 @@ bool trace::FilterDefault::ShouldHitEntity(IHandleEntity *handle, int mask)
switch (clazz->m_ClassID)
{
// TODO magic numbers: invisible entity ids
case 246:
case 248:
case 64:
case 225:
case 55:
@ -79,7 +81,6 @@ void trace::FilterNoPlayer::SetSelf(IClientEntity *self)
bool trace::FilterNoPlayer::ShouldHitEntity(IHandleEntity *handle, int mask)
{
return false;
IClientEntity *entity;
ClientClass *clazz;
@ -91,6 +92,7 @@ bool trace::FilterNoPlayer::ShouldHitEntity(IHandleEntity *handle, int mask)
switch (clazz->m_ClassID)
{
// TODO magic numbers: invisible entity ids
case
case 64:
case 225:
case 55: