From: MirceaKitsune Date: Sun, 29 Jan 2012 21:41:48 +0000 (+0200) Subject: Handle portrait updates X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d2f14f5424befa182b808aa96d9a7ab004d73c5e;p=voretournament%2Fvoretournament.git Handle portrait updates --- 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);