From: Lyberta Date: Sat, 14 Jul 2018 13:54:11 +0000 (+0300) Subject: Removed unused code from CTF and Invasion. X-Git-Tag: xonotic-v0.8.5~1953^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5a4e26e6333d0b2fc4c9394141cd880c905a150;p=xonotic%2Fxonotic-data.pk3dir.git Removed unused code from CTF and Invasion. --- 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) {