From: terencehill Date: Tue, 17 Jul 2018 14:09:26 +0000 (+0200) Subject: Bot AI: don't consider an item reachable just because it overlaps a teleport waypoint... X-Git-Tag: xonotic-v0.8.5~1923^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d5e34836b0af6685b1c5aad493d6000f38d1ef25;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: don't consider an item reachable just because it overlaps a teleport waypoint (it fixes bots trying to get the big health inside the ring in the map Checkmate) --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index cb003dbd3..250b7cb09 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -916,7 +916,7 @@ entity navigation_findnearestwaypoint_withdist_except(entity ent, float walkfrom vector pm2 = ent.origin + ent.maxs; // do two scans, because box test is cheaper - IL_EACH(g_waypoints, it != ent && it != except, + IL_EACH(g_waypoints, it != ent && it != except && !(it.wpflags & WAYPOINTFLAG_TELEPORT), { if(boxesoverlap(pm1, pm2, it.absmin, it.absmax)) {