From 8ecb594bdab5cd5f175809a5faa4e629bec14bce Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 17 Apr 2017 00:21:57 +0200 Subject: [PATCH] Fix incorrect distance calculation between 2 waypoints when destination waypoint is a box --- qcsrc/server/bot/default/waypoints.qc | 1 - 1 file changed, 1 deletion(-) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 865cd2160..9642bf378 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -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 -- 2.39.2