]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix incorrect distance calculation between 2 waypoints when destination waypoint...
authorterencehill <piuntn@gmail.com>
Sun, 16 Apr 2017 22:21:57 +0000 (00:21 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 16 Apr 2017 22:21:57 +0000 (00:21 +0200)
qcsrc/server/bot/default/waypoints.qc

index 865cd2160672ff3fb3714d3add64e0595fef62f8..9642bf3781d1895a0f2e770897392b92f1a6a158 100644 (file)
@@ -398,7 +398,6 @@ void waypoint_addlink(entity from, entity to)
                v2_x = bound(m1_x, v2_x, m2_x);
                v2_y = bound(m1_y, v2_y, m2_y);
                v2_z = bound(m1_z, v2_z, m2_z);
-               v2 = to.origin;
                c = vlen(v2 - v1);
        }
        else