GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


A Paste by Anonymous
    for(i = 0;i<num_OfTestBotsWP;i++) {                    
                    CVector3 the_pos = q3toNorm(bot_test_waypoint[i]);
                    if(Distance3(the_pos,origin) < Distance3(LastEndPoint,origin)) {
                        if(Distance3(the_pos,origin) > 2.0f && !WaypWalked[i]) {
                            LastEndPoint = the_pos;
                            EndPoint = LastEndPoint;
                            WaypWalked[i] = true;
                            lwnum = i;
                        }
                    }                                        
                }