]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/ipban.qc
Use loop macro in Ban_Enforce
[xonotic/xonotic-data.pk3dir.git] / 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))
                {