]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores_rules.qc
Teamplay: Removed most global variables.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores_rules.qc
index 8d87407e64ebd3bc165efe3e27b53c6ceef25f0b..17f5de90a307f6a9385eab41dd8c918111c6894c 100644 (file)
@@ -65,10 +65,7 @@ void ScoreRules_generic()
     int teams = 0;
        if (teamplay) {
                CheckAllowedTeams(NULL);
-               if (c1 >= 0) teams |= BIT(0);
-               if (c2 >= 0) teams |= BIT(1);
-               if (c3 >= 0) teams |= BIT(2);
-               if (c4 >= 0) teams |= BIT(3);
+               teams = GetAllowedTeams();
        }
        GameRules_scoring(teams, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, {});
 }