replaced wrong naming for global variable

This commit is contained in:
jeefo 2015-06-30 00:52:20 +03:00
commit f19e4e9e7f
5 changed files with 13 additions and 13 deletions

View file

@ -458,7 +458,7 @@ bool Bot::IsFriendInLineOfFire (float distance)
TraceLine (EyePosition (), EyePosition () + 10000.0f * pev->v_angle, false, false, GetEntity (), &tr);
// check if we hit something
if (!IsEntityNull (tr.pHit) && tr.pHit != g_worldEdict)
if (!IsEntityNull (tr.pHit) && tr.pHit != g_worldEntity)
{
int playerIndex = IndexOfEntity (tr.pHit) - 1;