From: terencehill Date: Sat, 28 May 2022 13:01:11 +0000 (+0200) Subject: Don't initialize the teamkill score field in games without teams X-Git-Tag: xonotic-v0.8.6~319^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3accde94e4b58b4cec23d3cdb6e46e8e9eaa200a;p=xonotic%2Fxonotic-data.pk3dir.git Don't initialize the teamkill score field in games without teams --- diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index ea682584a..15e988a4e 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -47,7 +47,8 @@ void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled if (!INDEPENDENT_PLAYERS) { ScoreInfo_SetLabel_PlayerScore(SP_SUICIDES, "suicides", SFL_LOWER_IS_BETTER); - ScoreInfo_SetLabel_PlayerScore(SP_TEAMKILLS, "teamkills", SFL_LOWER_IS_BETTER); + if (teamplay) + ScoreInfo_SetLabel_PlayerScore(SP_TEAMKILLS, "teamkills", SFL_LOWER_IS_BETTER); } if(score_enabled)