]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix crosshair blur not working well while aiming at a teammate and moving crosshair
authorterencehill <piuntn@gmail.com>
Sun, 20 Oct 2019 09:27:18 +0000 (11:27 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 20 Oct 2019 09:27:18 +0000 (11:27 +0200)
qcsrc/client/view.qc

index 972dcae424e6462cef7232af234d6dbacd31b7e9..49b0d26d2765343eb7e917722a37906f70078a8f 100644 (file)
@@ -672,7 +672,10 @@ float TrueAimCheck(entity wepent)
        tracebox(w_shotorg, mi, ma, w_shotorg + view_forward * (vecs.x + nudge), MOVE_NORMAL, ta); // FIXME this MOVE_NORMAL part will misbehave a little in csqc
        w_shotorg = trace_endpos - view_forward * nudge;
 
-       tracebox(w_shotorg, mi, ma, trueaimpoint, MOVE_NORMAL, ta);
+       if (mi == '0 0 0')
+               traceline(w_shotorg, trueaimpoint, MOVE_NORMAL, ta);
+       else
+               tracebox(w_shotorg, mi, ma, trueaimpoint, MOVE_NORMAL, ta);
        shottype = EnemyHitCheck();
        if(shottype != SHOTTYPE_HITWORLD)
                return shottype;