- float maxdistance = 0;
- float tempdist;
- //~ int whichclosest;
- for (i = 0; i < objects.numobjects; i++) {
- tempdist = distsq(¢er, &objects.position[i]);
- if (tempdist > maxdistance) {
- //~ whichclosest=i;
- maxdistance = tempdist;
- }
- }
- for (i = 0; i < Person::players.size(); i++) {
- if (!Person::players[i]->dead) {
- tempdist = distsq(¢er, &Person::players[i]->coords);
- if (tempdist > maxdistance) {
- //~ whichclosest=i;
- maxdistance = tempdist;
- }
- }
- }
- radius = fast_sqrt(maxdistance);
-