Fix wall dodging working on the skybox
authorMario <mario@smbclan.net>
Thu, 27 Oct 2016 04:38:05 +0000 (14:38 +1000)
committerMario <mario@smbclan.net>
Thu, 27 Oct 2016 04:38:05 +0000 (14:38 +1000)
qcsrc/common/mutators/mutator/dodging/sv_dodging.qc

index f9cee61f1ee81e374d745a10bf3afae0b60f3013..d20814ce7c045f04390645e8b156842b5236338e 100644 (file)
@@ -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);