diff --git a/src/game/server/nav_area.h b/src/game/server/nav_area.h index e352940d9..ee8afa5bb 100644 --- a/src/game/server/nav_area.h +++ b/src/game/server/nav_area.h @@ -520,11 +520,11 @@ class CNavArea : protected CNavAreaCriticalData virtual bool IsPartiallyVisible( const Vector &eye, const CBaseEntity *ignore = NULL ) const; // return true if any portion of the area is visible from given eyepoint (CPU intensive) virtual bool IsPotentiallyVisible( const CNavArea *area ) const; // return true if given area is potentially visible from somewhere in this area (very fast) + virtual bool IsPotentiallyVisibleToTeam( int team ) const; // return true if any portion of this area is visible to anyone on the given team (very fast) #ifdef NEO int GetPotentiallyVisibleAreaCount() const { return m_visibleAreaCount; } void ComputePotentiallyVisibleAreaCount(); #endif - virtual bool IsPotentiallyVisibleToTeam( int team ) const; // return true if any portion of this area is visible to anyone on the given team (very fast) virtual bool IsCompletelyVisible( const CNavArea *area ) const; // return true if given area is completely visible from somewhere in this area (very fast) virtual bool IsCompletelyVisibleToTeam( int team ) const; // return true if given area is completely visible from somewhere in this area by someone on the team (very fast) @@ -666,11 +666,11 @@ class CNavArea : protected CNavAreaCriticalData */ static unsigned int m_nextID; // used to allocate unique IDs -#ifdef NEO - int m_visibleAreaCount; -#endif unsigned int m_id; // unique area ID unsigned int m_debugid; +#ifdef NEO + unsigned int m_visibleAreaCount; // cached number of visible areas from this navarea +#endif Place m_place; // place descriptor