]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot waypoints: reduce distance to snap a waypoint to an item
authorterencehill <piuntn@gmail.com>
Thu, 2 Aug 2018 13:07:44 +0000 (15:07 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 2 Aug 2018 13:07:44 +0000 (15:07 +0200)
qcsrc/server/bot/default/waypoints.qc

index 674ab634a1c768889ff3ac4025ea07008221b813..4c7cb350db74e6cef74296d919c87326453faa4a 100644 (file)
@@ -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;