View Single Post
Re: Permanent crash on cs_bigbrother_beta1
Old
  (#21)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Permanent crash on cs_bigbrother_beta1 - 01-06-2004

looks like this is PMB's fault.
the original PB code is:
Code:
// Returns all Waypoints within Radius from Position
void WaypointFindInRadius(Vector vecPos,float fRadius,int *pTab,int *iCount)
{
	int i,iMaxCount;
	float distance;
	
	iMaxCount = *iCount;
	*iCount = 0;
	
	for (i=0; i < g_iNumWaypoints; i++)
	{
		
		distance = (paths[i]->origin - vecPos).Length();
		
		if (distance < fRadius)
		{
			*pTab++ = i;
			*iCount += 1;
			if(*iCount == iMaxCount)
				break;
		}
	}
	*iCount -= 1;
}
  
Reply With Quote