]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
score labels must be strunzoned as the server sends them twice on purpose (who knows...
authorterencehill <piuntn@gmail.com>
Tue, 2 Dec 2014 11:52:45 +0000 (12:52 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 2 Dec 2014 11:52:45 +0000 (12:52 +0100)
qcsrc/client/Main.qc

index c0e37ae62177b536a0d60a085ae6b056684241b8..4110d6d161844d10e1c91a77093d23bf4353a727 100644 (file)
@@ -942,11 +942,15 @@ void Ent_ScoresInfo()
        HUD_ModIcons_SetFunc();
        for(i = 0; i < MAX_SCORE; ++i)
        {
+               if(scores_label[i])
+                       strunzone(scores_label[i]);
                scores_label[i] = strzone(ReadString());
                scores_flags[i] = ReadByte();
        }
        for(i = 0; i < MAX_TEAMSCORE; ++i)
        {
+               if(teamscores_label[i])
+                       strunzone(teamscores_label[i]);
                teamscores_label[i] = strzone(ReadString());
                teamscores_flags[i] = ReadByte();
        }