]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Handle portrait updates
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:41:48 +0000 (23:41 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:41:48 +0000 (23:41 +0200)
data/qcsrc/client/hud.qc

index 7c4cf21d7e30e0a7ce8206f39297fb75f3e1557a..18f76f8d9df5601638b17670d6be3c4f14be4614 100644 (file)
@@ -3577,6 +3577,13 @@ void Ent_ReadPortrait()
        pl_skin = ReadByte();\r
        pl_name = ReadString();\r
 \r
+       // updating an existent portrait\r
+       if(portrait_time)\r
+       {\r
+               strunzone(portrait_name);\r
+               strunzone(portrait_image);\r
+       }\r
+\r
        portrait_time = time;\r
        portrait_name = strzone(pl_name);\r
 \r