From: terencehill Date: Thu, 2 Aug 2018 13:07:44 +0000 (+0200) Subject: Bot waypoints: reduce distance to snap a waypoint to an item X-Git-Tag: xonotic-v0.8.5~1935^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=053a29ffc14027c56c3ed9b7035428dc2bca0467;p=xonotic%2Fxonotic-data.pk3dir.git Bot waypoints: reduce distance to snap a waypoint to an item --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 674ab634a..4c7cb350d 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -260,7 +260,7 @@ void waypoint_spawn_fromeditor(entity pl) { vector item_org = (it.absmin + it.absmax) * 0.5; item_org.z = it.absmin.z - PL_MIN_CONST.z; - if(vlen(item_org - org) < 30) + if (vlen(item_org - org) < 20) { org = item_org; break;