From 7784db854e7666aaae65e1dc1eaf111e961081d9 Mon Sep 17 00:00:00 2001 From: puzl Date: Thu, 1 Jun 2006 22:13:40 +0000 Subject: [PATCH] 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 --- releases/3.2.0/source/mod/AvHWorldUpdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/3.2.0/source/mod/AvHWorldUpdate.cpp b/releases/3.2.0/source/mod/AvHWorldUpdate.cpp index 80518ee0..0d246a17 100644 --- a/releases/3.2.0/source/mod/AvHWorldUpdate.cpp +++ b/releases/3.2.0/source/mod/AvHWorldUpdate.cpp @@ -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);