]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make teamscores add playerstats events (necessary for CA "rounds" field)
authorJan Behrens <zykure@web.de>
Sat, 11 May 2013 09:49:24 +0000 (11:49 +0200)
committerJan Behrens <zykure@web.de>
Sat, 11 May 2013 09:49:24 +0000 (11:49 +0200)
NOTE: CA needs this to submit the "rounds" field since it is only defined as a teamscore-, but not as a playerscore-field.

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)