]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores.qc
Make teamscores add playerstats events (necessary for CA "rounds" field)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores.qc
index 347dc0fe6ec172f921fc97c3a9b0600ef4d70684..0769a4f038021e85b09ebabb757090c482de98a6 100644 (file)
@@ -171,6 +171,11 @@ void ScoreInfo_SetLabel_TeamScore(float i, string label, float scoreflags)
                teamscores_primary = teamscores[i];
                teamscores_flags_primary = scoreflags;
        }
+       if(label != "")
+       {
+               PlayerStats_AddEvent(strcat(PLAYERSTATS_TOTAL, label));
+               PlayerStats_AddEvent(strcat(PLAYERSTATS_SCOREBOARD, label));
+       }
 }
 
 float ScoreInfo_SendEntity(entity to, float sf)