From: terencehill Date: Tue, 13 Aug 2019 11:12:04 +0000 (+0200) Subject: Remove a global (and a wasted vlen call) that has never been used X-Git-Tag: xonotic-v0.8.5~1398 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f017f680edee3432c64796ad37b6f55325ff6afe;p=xonotic%2Fxonotic-data.pk3dir.git Remove a global (and a wasted vlen call) that has never been used --- diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index 84aae1933..fff1b3991 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -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) diff --git a/qcsrc/common/turrets/sv_turrets.qh b/qcsrc/common/turrets/sv_turrets.qh index 8273e54dd..f7b14b0a6 100644 --- a/qcsrc/common/turrets/sv_turrets.qh +++ b/qcsrc/common/turrets/sv_turrets.qh @@ -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