]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a loop not working as intended
authorterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 18:31:10 +0000 (20:31 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 18:31:10 +0000 (20:31 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index ac90aa78c0722703911baaa693fd5903c09684cd..85d4bef62840c98dd80b008f035012e44a08132b 100644 (file)
@@ -1342,7 +1342,7 @@ void havocbot_goalrating_ons_controlpoints_attack(entity this, float ratingscale
                found = false;
                best = NULL;
                bestvalue = FLOAT_MAX;
-               for (radius = 0; radius < 1000 && !found; radius += 500)
+               for (radius = 500; radius <= 1000 && !found; radius += 500)
                {
                        IL_EACH(g_waypoints, vdist(cp.origin - it.origin, <, radius),
                        {