]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/navigation.qc
Merge branch 'master' into terencehill/bot_waypoints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / navigation.qc
index bdcab001b5ad756246336e9f935a893c1602efea..f110a524910b8a823aa839e5186da4ad02070daf 100644 (file)
@@ -180,7 +180,7 @@ bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float e
                                        if (trace_fraction < 1 || trace_startsolid)
                                        {
                                                bool ladder_found = false;
-                                               FOREACH_ENTITY_CLASS("func_ladder", true,
+                                               IL_EACH(g_ladders, it.classname == "func_ladder",
                                                {
                                                        if(boxesoverlap(org + jumpheight_vec + m1 + '-1 -1 -1', org + jumpheight_vec + m2 + '1 1 1', it.absmin, it.absmax))
                                                        if(boxesoverlap(end, end2, it.absmin + (m1 - eZ * m1.z - '1 1 0'), it.absmax + (m2 - eZ * m2.z + '1 1 0')))