nlwarning("CGrpFauna::spawn(idx) FAILED for group %s because idx (%d) >= _Populations.size() (%d)",this->CGroup::getFullName().c_str(),popVersion,_Populations.size());
nlwarning("CGrpFauna::spawn(idx) FAILED for group %s because idx (%d) >= _Populations.size() (%d)",this->CGroup::getFullName().c_str(),popVersion,_Populations.size());
// - This method adds the new object to the top of the CFollowPath singleton's context stack
// - This method adds the new object to the top of the CFollowPath singleton's context stack
// parameters:
// parameters:
// - contextName : an arbitrary string naming the context
// - contextName : an arbitrary string naming the context
// - maxSearchDepth : the value that the path finder search depth should be limitted to (default to ~0u meaning no limit)
// - maxSearchDepth : the value that the path finder search depth should be limitted to (default to std::numeric_limits<uint32>::max() meaning no limit)
// - forceMaxDepth : set this flag true to override previous limit with larger value
// - forceMaxDepth : set this flag true to override previous limit with larger value
// example:
// example:
// - ... Before we begin ... CFollowPath::_MaxSearchDepth = ~0u
// - ... Before we begin ... CFollowPath::_MaxSearchDepth = std::numeric_limits<uint32>::max()
BOMB_IF(visionId>=_VisionGroups.size()||oldVisionGroup==NULL,"Trying to remove entity from vision group with unknown vision id",viewerRecord->VisionId=~0u;return);
BOMB_IF(visionId>=_VisionGroups.size()||oldVisionGroup==NULL,"Trying to remove entity from vision group with unknown vision id",viewerRecord->VisionId=std::numeric_limits<uint32>::max();return);
// if we're the only viewer then already isolated so just return
// if we're the only viewer then already isolated so just return
if(oldVisionGroup->numViewers()==1)
if(oldVisionGroup->numViewers()==1)
@ -830,7 +830,7 @@ namespace R2_VISION
if(viewerRecord!=NULL)
if(viewerRecord!=NULL)
{
{
uint32visionId=viewerRecord->VisionId;
uint32visionId=viewerRecord->VisionId;
BOMB_IF(visionId>=_VisionGroups.size()||_VisionGroups[visionId]==NULL,"Trying to remove entity with unknown vision id",viewerRecord->VisionId=~0u;return);
BOMB_IF(visionId>=_VisionGroups.size()||_VisionGroups[visionId]==NULL,"Trying to remove entity with unknown vision id",viewerRecord->VisionId=std::numeric_limits<uint32>::max();return);
log->displayRawNL("\t%s (on MS-%hu), %u measures:",CUnifiedNetwork::getInstance()->getServiceUnifiedName((*ihs).ServiceId).c_str(),(*ihs).ParentServiceId.get(),(*ihs).NbMeasures);
log->displayRawNL("\t%s (on MS-%hu), %u measures:",CUnifiedNetwork::getInstance()->getServiceUnifiedName((*ihs).ServiceId).c_str(),(*ihs).ParentServiceId.get(),(*ihs).NbMeasures);