From: terencehill Date: Sat, 21 Dec 2019 23:26:12 +0000 (+0100) Subject: Add a comment about tracewalk underwater X-Git-Tag: xonotic-v0.8.5~1204 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04cbc2ce0ff4cec34c4b33bc5c79f8d2dbef19f5;p=xonotic%2Fxonotic-data.pk3dir.git Add a comment about tracewalk underwater --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 01352d0e4..5457211d8 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -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)))