From f017f680edee3432c64796ad37b6f55325ff6afe Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 13 Aug 2019 13:12:04 +0200 Subject: [PATCH] Remove a global (and a wasted vlen call) that has never been used --- qcsrc/common/turrets/sv_turrets.qc | 1 - qcsrc/common/turrets/sv_turrets.qh | 1 - 2 files changed, 2 deletions(-) diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index 84aae19335..fff1b39915 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 8273e54dd1..f7b14b0a65 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 -- 2.39.2