From 3accde94e4b58b4cec23d3cdb6e46e8e9eaa200a Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 28 May 2022 15:01:11 +0200 Subject: [PATCH] Don't initialize the teamkill score field in games without teams --- qcsrc/server/scores_rules.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2