From: Mario Date: Sat, 8 Sep 2018 10:25:31 +0000 (+1000) Subject: Fix FLAC cannons unable to target projectiles X-Git-Tag: xonotic-v0.8.5~1892 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=701b723907532d3e60e2a901b2e3dc5e1e8a5dd9;p=xonotic%2Fxonotic-data.pk3dir.git Fix FLAC cannons unable to target projectiles --- diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index 95ee41981..11d6d9863 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -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))