From: terencehill Date: Thu, 9 Aug 2018 12:24:00 +0000 (+0200) Subject: Use a tracebox instead of traceline to check if player is flying, it fixes #843 ... X-Git-Tag: xonotic-v0.8.5~1933 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a24590b35c82881d400921deea544f2206c45d4;p=xonotic%2Fxonotic-data.pk3dir.git Use a tracebox instead of traceline to check if player is flying, it fixes #843 "Repeated jump sound on xoylent" --- diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index 2f4ebb1ff..f6ab29715 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -809,7 +809,8 @@ bool IsFlying(entity this) return false; if(this.waterlevel >= WATERLEVEL_SWIMMING) return false; - traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this); + tracebox(this.origin, this.mins, this.maxs, this.origin - '0 0 24', MOVE_NORMAL, this); + //traceline(this.origin, this.origin - '0 0 48', MOVE_NORMAL, this); if(trace_fraction < 1) return false; return true;