]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a global (and a wasted vlen call) that has never been used
authorterencehill <piuntn@gmail.com>
Tue, 13 Aug 2019 11:12:04 +0000 (13:12 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 13 Aug 2019 11:12:04 +0000 (13:12 +0200)
qcsrc/common/turrets/sv_turrets.qc
qcsrc/common/turrets/sv_turrets.qh

index 84aae19335fd0d970a32a2024090780e16c3d372..fff1b3991576f178bcffa4b6b33015cbb4b43649 100644 (file)
@@ -788,7 +788,6 @@ float turret_validate_target(entity e_turret, entity e_target, float validate_fl
        tvt_thadv = angleofs3(e_turret.tur_head.origin, e_turret.angles + e_turret.tur_head.angles, e_target.origin);
        tvt_tadv = shortangle_vxy(angleofs(e_turret, e_target), e_turret.angles);
        tvt_thadf = vlen(tvt_thadv);
-       tvt_tadf = vlen(tvt_tadv);
 
        /*
        if(validate_flags & TFL_TARGETSELECT_FOV)
index 8273e54dd1ba31b289a6a39240f8148147f66362..f7b14b0a65e5641295c962018bd6bd89ee70210f 100644 (file)
@@ -102,5 +102,4 @@ float turret_count;
 vector tvt_thadv; // turret head angle diff vector, updated by a successful call to turret_validate_target
 vector tvt_tadv; // turret angle diff vector, updated by a successful call to turret_validate_target
 float tvt_thadf; // turret head angle diff float, updated by a successful call to turret_validate_target
-float tvt_tadf; // turret angle diff float, updated by a successful call to turret_validate_target
 float tvt_dist; // turret distance, updated by a successful call to turret_validate_target