]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix FLAC cannons unable to target projectiles
authorMario <zacjardine@y7mail.com>
Sat, 8 Sep 2018 10:25:31 +0000 (20:25 +1000)
committerMario <zacjardine@y7mail.com>
Sat, 8 Sep 2018 10:25:31 +0000 (20:25 +1000)
qcsrc/common/turrets/sv_turrets.qc

index 95ee419815a14a0741644b8a84ddcf6bd5ea3b97..11d6d9863e6160717bc3c20ae2811aa1bac666eb 100644 (file)
@@ -716,7 +716,7 @@ float turret_validate_target(entity e_turret, entity e_target, float validate_fl
        if(!checkpvs(e_target.origin, e_turret))
                return -1;
 
-       if(e_target.alpha <= 0.3)
+       if(e_target.alpha != 0 && e_target.alpha <= 0.3)
                return -1;
 
        if(MUTATOR_CALLHOOK(TurretValidateTarget, e_turret, e_target, validate_flags))