From: Jan Behrens Date: Sat, 11 May 2013 09:49:24 +0000 (+0200) Subject: Make teamscores add playerstats events (necessary for CA "rounds" field) X-Git-Tag: xonotic-v0.7.0~23^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=505eb67e031ebe6255713fbca06979a0b961af4c;p=xonotic%2Fxonotic-data.pk3dir.git Make teamscores add playerstats events (necessary for CA "rounds" field) NOTE: CA needs this to submit the "rounds" field since it is only defined as a teamscore-, but not as a playerscore-field. --- diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 347dc0fe6..0769a4f03 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -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)