]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor performance tweak
authorMario <mario@smbclan.net>
Tue, 22 Mar 2016 10:03:39 +0000 (20:03 +1000)
committerMario <mario@smbclan.net>
Tue, 22 Mar 2016 10:03:39 +0000 (20:03 +1000)
qcsrc/server/bot/waypoints.qc

index c5f01e14a70831c9649e6b3939f43d465bf6b762..049d7236f3e161b7a2716afd04ef729b91749ebb 100644 (file)
@@ -201,7 +201,7 @@ void waypoint_think()
                        ev.z = bound(em1_z, ev.z, em2_z);
                        dv = ev - sv;
                        dv.z = 0;
-                       if (vlen(dv) >= 1050) // max search distance in XY
+                       if(vdist(dv, >=, 1050)) // max search distance in XY
                        {
                                ++relink_lengthculled;
                                continue;