]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove an unused function
authorMario <mario@smbclan.net>
Thu, 24 Dec 2015 01:49:06 +0000 (11:49 +1000)
committerMario <mario@smbclan.net>
Thu, 24 Dec 2015 01:49:06 +0000 (11:49 +1000)
qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc

index 485fc1b7cef1845d5c804b5caca93f225938f778..4d6b5631ae9b2691635dbd43a4e2609cddd96109 100644 (file)
@@ -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;