From f25d8b1740f6d6a093ea537b9f1091bd68068c17 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 27 Oct 2016 14:38:05 +1000 Subject: [PATCH] Fix wall dodging working on the skybox --- qcsrc/common/mutators/mutator/dodging/sv_dodging.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2