]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix subtle bug in tracewalk reporting that bot can go through any pool, regardless...
authorterencehill <piuntn@gmail.com>
Thu, 30 Mar 2017 18:04:42 +0000 (20:04 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 30 Mar 2017 18:04:42 +0000 (20:04 +0200)
qcsrc/server/bot/default/navigation.qc

index b0953089819843403abd957073f7cb3d48fd0a9e..b4503fa148a61e14164dc832d878fd40371ca615 100644 (file)
@@ -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)