]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a comment about tracewalk underwater
authorterencehill <piuntn@gmail.com>
Sat, 21 Dec 2019 23:26:12 +0000 (00:26 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 21 Dec 2019 23:26:12 +0000 (00:26 +0100)
qcsrc/server/bot/default/navigation.qc

index 01352d0e4d94ba4702fdb727a8818dc1e946d02b..5457211d84d2305bfa70ba1cd74a694a61239fbe 100644 (file)
@@ -239,6 +239,9 @@ bool navigation_checkladders(entity e, vector org, vector m1, vector m2, vector
        return false;
 }
 
+// Unfortuntely we can't use trace_inwater since it doesn't hold the fraction of the total
+// distance that was traveled before impact as the description in the engine (collision.h) says.
+// It would have helped to speed up tracewalk underwater
 vector resurface_limited(vector org, float lim, vector m1)
 {
        if (WETFEET(org + eZ * (lim - org.z)))