Sources/CryGame C++/Solution1/CryGame/XArea.cpp
//////////////////////////////////////////////////////////////////////////
//	checks for areas in the same group, if entered area is lower priority (areaID) - return false 
//	(don't do enreArea for it)

checks for areas in the same group, if entered area is lower priority (areaID) - return false
(don't do enreArea for it)
checks for areas in the same group if entered area is lower priority ( areaID ) - return false ( don ' t do enreArea for it )
bool	CXAreaMgr::ProceedExclusiveEnter( CXAreaUser& user, unsigned int curIdx )
{
	int	maxArea=FindHighestHostedArea( user.m_HostedAreasIdx, curIdx );
	if(maxArea<0)
		return true;
	int maxID = m_vpAreas[maxArea]->GetID();
	if(m_vpAreas[curIdx]->GetID()<maxID)
		return false;
	return true;
}
bool CXAreaMgr :: ProceedExclusiveEnter ( CXAreaUser & user , unsigned int curIdx ) { int maxArea = FindHighestHostedArea ( user . m_HostedAreasIdx , curIdx ) ; if ( maxArea < 0 ) return true ; int maxID = m_vpAreas [ maxArea ] -> GetID ( ) ; if ( m_vpAreas [ curIdx ] -> GetID ( ) < maxID ) return false ; return true ; }
checks for areas in the same group, if entered area is lower priority (areaID) - return false
(don't do enreArea for it)
checks for areas in the same group if entered area is lower priority ( areaID ) - return false ( don ' t do enreArea for it )