replaced wrong naming for global variable
This commit is contained in:
parent
f2ed8fe3e6
commit
f19e4e9e7f
5 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue