mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
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:
parent
280694c604
commit
7784db854e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue