]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'Mario/xonoticless_fix' into 'master'
authorMario <zacjardine@y7mail.com>
Thu, 27 Oct 2016 23:15:46 +0000 (23:15 +0000)
committerMario <zacjardine@y7mail.com>
Thu, 27 Oct 2016 23:15:46 +0000 (23:15 +0000)
Merge branch Mario/xonoticless_fix (M merge request)

Moves some stuff around so the game code can be compiled with -DXONOTIC=0 again.

See merge request !381

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);