]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
only add the event if the label is set
authorRudolf Polzer <divverent@alientrap.org>
Fri, 14 Jan 2011 22:22:59 +0000 (23:22 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 14 Jan 2011 22:22:59 +0000 (23:22 +0100)
qcsrc/server/scores.qc

index be843339729ddb09ac5bfe34f3742899baccc93c..79f2ffc7ce6418fde3634e5ca88fbf51dd368dca 100644 (file)
@@ -150,8 +150,11 @@ void ScoreInfo_SetLabel_PlayerScore(float i, string label, float scoreflags)
                scores_primary = scores[i];
                scores_flags_primary = scoreflags;
        }
-       PlayerStats_AddEvent(strcat(PLAYERSTATS_TOTAL, label));
-       PlayerStats_AddEvent(strcat(PLAYERSTATS_SCOREBOARD, label));
+       if(label != "")
+       {
+               PlayerStats_AddEvent(strcat(PLAYERSTATS_TOTAL, label));
+               PlayerStats_AddEvent(strcat(PLAYERSTATS_SCOREBOARD, label));
+       }
 }
 
 void ScoreInfo_SetLabel_TeamScore(float i, string label, float scoreflags)