From 995e3ea60f0c4f5b54631d785968c878e0079814 Mon Sep 17 00:00:00 2001 From: Alan Shen Date: Thu, 18 Jun 2026 00:23:41 -0600 Subject: [PATCH] Reorganize NEO specific items --- src/game/server/nav_area.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/server/nav_area.h b/src/game/server/nav_area.h index e352940d9c..ee8afa5bb7 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