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 b095308..b4503fa 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)