]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use loop macro in Ban_Enforce 83/head 91/head
authorMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 23 Jan 2015 15:15:28 +0000 (16:15 +0100)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 23 Jan 2015 15:15:28 +0000 (16:15 +0100)
qcsrc/server/ipban.qc

index b7ea0cc2f330051e670bef11de8eaa45922ce085..d8a70fe658a238fe1d4e414cfd3164d472ee7a9e 100644 (file)
@@ -469,7 +469,7 @@ string Ban_Enforce(float i, string reason)
 
        // Enforce our new ban
        s = "";
-       for(e = world; (e = nextent(e)) && (num_for_edict(e) <= maxclients); )
+       FOR_EACH_CLIENTSLOT(e)
                if (IS_REAL_CLIENT(e))
                if(Ban_IsClientBanned(e, i))
                {