From ab52758792cb17dabc4791d1d613ec9181faa60c Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 17 Jan 2012 12:15:07 +0100 Subject: [PATCH] Explain the reason why newSize_x is unused --- qcsrc/client/hud.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index efab2ec8a..02cd45d23 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1061,8 +1061,8 @@ void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, fl picpos = newPos; } - // FIXME newSize_x is unused, is that right? - + // NOTE: newSize_x is always equal to 3 * mySize_y so we can use + // '2 1 0' * newSize_y instead of eX * (2/3) * newSize_x + eY * newSize_y drawstring_aspect_expanding(numpos, ftos(x), '2 1 0' * newSize_y, color, panel_fg_alpha * theAlpha, DRAWFLAG_NORMAL, fadelerp); drawpic_aspect_skin_expanding(picpos, icon, '1 1 0' * newSize_y, '1 1 1', panel_fg_alpha * theAlpha, DRAWFLAG_NORMAL, fadelerp); } -- 2.39.2