]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply martin's version of the walljump angle fix
authorMario <mario.mario@y7mail.com>
Sun, 29 Dec 2019 08:07:43 +0000 (18:07 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 29 Dec 2019 08:07:43 +0000 (18:07 +1000)
qcsrc/common/mutators/mutator/walljump/walljump.qc

index 46e18059c8a8dba9f9f8e71433d14950ad9476f7..519159d917b386b9488261845caeed486f4f378c 100644 (file)
@@ -21,11 +21,10 @@ vector PlayerTouchWall(entity this)
        if (!(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT)) \
                return trace_plane_normal;
 
-       vector forward, right, up;
-       MAKE_VECTORS(this.angles, forward, right, up);
-
        float dist = 10, max_normal = 0.2, scaler = 100;
        vector start = this.origin;
+       vector forward, right, _up;
+       MAKE_VECTORS(this.angles, forward, right, _up);
        TRACE(start + forward * scaler)
        TRACE(start - forward * scaler)
        TRACE(start + right * scaler)