]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't initialize the teamkill score field in games without teams
authorterencehill <piuntn@gmail.com>
Sat, 28 May 2022 13:01:11 +0000 (15:01 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 28 May 2022 13:01:11 +0000 (15:01 +0200)
qcsrc/server/scores_rules.qc

index ea682584a3389d6e4eaec2fe064a5c1ecb439c39..15e988a4ebfa2c946b225c8fad327a679d02cb66 100644 (file)
@@ -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)