From a5a4e26e6333d0b2fc4c9394141cd880c905a150 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 14 Jul 2018 16:54:11 +0300 Subject: [PATCH] Removed unused code from CTF and Invasion. --- qcsrc/common/gamemodes/gamemode/ctf/ctf.qc | 1 - qcsrc/common/gamemodes/gamemode/invasion/invasion.qc | 1 - 2 files changed, 2 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc b/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc index 7546973a4..812d5da4e 100644 --- a/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc +++ b/qcsrc/common/gamemodes/gamemode/ctf/ctf.qc @@ -2694,7 +2694,6 @@ spawnfunc(team_CTL_bluelolly) { spawnfunc_item_flag_team2(this); } // scoreboard setup void ctf_ScoreRules(int teams) { - //CheckAllowedTeams(NULL); // Bug? Need to get allowed teams? GameRules_scoring(teams, SFL_SORT_PRIO_PRIMARY, 0, { field_team(ST_CTF_CAPS, "caps", SFL_SORT_PRIO_PRIMARY); field(SP_CTF_CAPS, "caps", SFL_SORT_PRIO_SECONDARY); diff --git a/qcsrc/common/gamemodes/gamemode/invasion/invasion.qc b/qcsrc/common/gamemodes/gamemode/invasion/invasion.qc index 15bc077bc..00e2241c6 100644 --- a/qcsrc/common/gamemodes/gamemode/invasion/invasion.qc +++ b/qcsrc/common/gamemodes/gamemode/invasion/invasion.qc @@ -562,7 +562,6 @@ MUTATOR_HOOKFUNCTION(inv, AllowMobButcher) void invasion_ScoreRules(int inv_teams) { - //if(inv_teams) { CheckAllowedTeams(NULL); } // Another bug? GameRules_score_enabled(false); GameRules_scoring(inv_teams, 0, 0, { if (inv_teams) { -- 2.39.2