From: terencehill Date: Thu, 30 Mar 2017 18:04:42 +0000 (+0200) Subject: Fix subtle bug in tracewalk reporting that bot can go through any pool, regardless... X-Git-Tag: xonotic-v0.8.2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b88b10a9fd55eba2e860fab24ce1edb41a549d1;p=xonotic%2Fxonotic-data.pk3dir.git Fix subtle bug in tracewalk reporting that bot can go through any pool, regardless of edge height (e.g. Solarium's pool) --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index b09530898..b4503fa14 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -136,7 +136,7 @@ bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float m if (trace_fraction < 1) { swimming = true; - org = trace_endpos - normalize(org - trace_endpos) * stepdist; + org = trace_endpos + normalize(org - trace_endpos) * stepdist; for (; org.z < end.z + e.maxs.z; org.z += stepdist) { if(autocvar_bot_debug_tracewalk)