From d2f14f5424befa182b808aa96d9a7ab004d73c5e Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 29 Jan 2012 23:41:48 +0200 Subject: [PATCH] Handle portrait updates --- data/qcsrc/client/hud.qc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index 7c4cf21d..18f76f8d 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -3577,6 +3577,13 @@ void Ent_ReadPortrait() pl_skin = ReadByte(); pl_name = ReadString(); + // updating an existent portrait + if(portrait_time) + { + strunzone(portrait_name); + strunzone(portrait_image); + } + portrait_time = time; portrait_name = strzone(pl_name); -- 2.39.2