]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Tracewalk: check starting position with pointcontents
authorterencehill <piuntn@gmail.com>
Sun, 20 May 2018 21:44:09 +0000 (23:44 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 20 May 2018 21:44:09 +0000 (23:44 +0200)
qcsrc/server/bot/default/navigation.qc

index 69672f78344f28758eec3ccba037e126da3a7c96..8c7e776b73615f052eac4ad524ff80a960f56dd2 100644 (file)
@@ -264,8 +264,7 @@ bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float e
        int nav_action;
 
        // Analyze starting point
-       traceline(start, start, MOVE_NORMAL, e);
-       if (trace_dpstartcontents & (DPCONTENTS_SLIME | DPCONTENTS_LAVA))
+       if (IN_LAVA(start))
                ignorehazards = true;
 
        tracebox(start, m1, m2, start, MOVE_NOMONSTERS, e);