.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Bug Reports (http://forums.bots-united.com/forumdisplay.php?f=49)
-   -   Permanent crash on cs_bigbrother_beta1 (http://forums.bots-united.com/showthread.php?t=1769)

Whistler 01-06-2004 12:12

Re: Permanent crash on cs_bigbrother_beta1
 
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;
}


Pierre-Marie Baty 01-06-2004 14:13

Re: Permanent crash on cs_bigbrother_beta1
 
I concede, I concede :)
That'll teach me to change stuff here and there randomly :D


All times are GMT +2. The time now is 11:38.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.