O Fixed a bug where the obs effected neutral entities on the minimap for both teams.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@518 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2006-06-01 22:13:40 +00:00
parent 280694c604
commit 7784db854e

View file

@ -95,7 +95,7 @@ bool AvHSUGetInViewOfEnemy(CBaseEntity* inEntity, int& outSightedStatus)
// Loop through observatories, uncloaking and detecting all enemy players in range
for(AvHObservatoryListType::iterator theObservatoryIter = gObservatoryList.begin(); theObservatoryIter != gObservatoryList.end(); theObservatoryIter++)
{
if((*theObservatoryIter)->pev->team != inEntity->pev->team && !(*theObservatoryIter)->GetIsRecycling() )
if((*theObservatoryIter)->pev->team != inEntity->pev->team && ( inEntity->pev->team != TEAM_IND ) && !(*theObservatoryIter)->GetIsRecycling() )
{
// Check that entity is in range of scan (only check XY distance, for commander's purposes)
float theDistance = VectorDistance2D((*theObservatoryIter)->pev->origin, inEntity->pev->origin);