From b1c5ff13032731b85d6272beee3541b297495b3b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 29 Jan 2012 23:53:45 +0200 Subject: [PATCH] Don't strunzone portrait image and name after the timer expires. Keeps the strings in memory when they aren't drawn, but this is better --- data/qcsrc/client/hud.qc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index f2a7a573..a7283782 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -1696,12 +1696,6 @@ void Sbar_Portrait() drawpic(left + '10 -80 0', portrait_image, '120 160 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); drawcolorcodedstring(left + '10 80 0', portrait_name, '12 12 0', sbar_alpha_fg, DRAWFLAG_NORMAL); } - else if(portrait_time) - { - strunzone(portrait_name); - strunzone(portrait_image); - portrait_time = 0; - } } void Sbar_Score() -- 2.39.2