From cbf20184a1904b56d0036a095a14eccdcb685965 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 28 Dec 2015 22:38:37 +1000 Subject: [PATCH] Optimize more maths --- qcsrc/client/hud/panel/radar.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 66d516960..2082f70b1 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -343,7 +343,7 @@ void HUD_Radar() if ( it.team == myteam+1 ) { vector coord = teamradar_texcoord_to_2dcoord(teamradar_3dcoord_to_texcoord(it.origin)); - if ( vlen(mousepos-coord) < 8 ) + if(vdist((mousepos - coord), <, 8)) { vector brightcolor; brightcolor_x = min(1,it.teamradar_color_x*1.5); -- 2.39.2