From: Mario Date: Thu, 27 Oct 2016 04:38:05 +0000 (+1000) Subject: Fix wall dodging working on the skybox X-Git-Tag: xonotic-v0.8.2~471 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f25d8b1740f6d6a093ea537b9f1091bd68068c17;p=xonotic%2Fxonotic-data.pk3dir.git Fix wall dodging working on the skybox --- diff --git a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc index f9cee61f1..d20814ce7 100644 --- a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc @@ -93,7 +93,7 @@ bool check_close_to_wall(entity this, float threshold) #define X(OFFSET) \ tracebox(this.origin, this.mins, this.maxs, this.origin + OFFSET, true, this); \ - if(trace_fraction < 1 && vdist(this.origin - trace_endpos, <, threshold)) \ + if(trace_fraction < 1 && !(trace_dphitq3surfaceflags & Q3SURFACEFLAG_SKY) && vdist(this.origin - trace_endpos, <, threshold)) \ return true; X(1000*v_right); X(-1000*v_right);