From: Mario Date: Thu, 24 Dec 2015 01:49:06 +0000 (+1000) Subject: Remove an unused function X-Git-Tag: xonotic-v0.8.2~1421 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=638038cde7cbba12be7b29cffae37aaa18a013e3;p=xonotic%2Fxonotic-data.pk3dir.git Remove an unused function --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc index 485fc1b7c..4d6b5631a 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc @@ -1310,7 +1310,7 @@ bool Onslaught_CheckPlayers() void Onslaught_RoundStart() { entity tmp_entity; - FOR_EACH_PLAYER(tmp_entity) { tmp_entity.player_blocked = false; } + FOREACH_CLIENT(IS_PLAYER(it), LAMBDA(it.player_blocked = false)); for(tmp_entity = ons_worldcplist; tmp_entity; tmp_entity = tmp_entity.ons_worldcpnext) tmp_entity.sprite.SendFlags |= 16; @@ -1397,19 +1397,6 @@ void havocbot_role_ons_setrole(entity bot, int role) ons_debug("\n"); } -int havocbot_ons_teamcount(entity bot, int role) -{SELFPARAM(); - int c = 0; - entity head; - - FOR_EACH_PLAYER(head) - if(SAME_TEAM(head, self)) - if(head.havocbot_role_flags & role) - ++c; - - return c; -} - void havocbot_goalrating_ons_controlpoints_attack(float ratingscale) {SELFPARAM(); entity cp, cp1, cp2, best, pl, wp;