From: Mattia Basaglia Date: Fri, 23 Jan 2015 15:15:28 +0000 (+0100) Subject: Use loop macro in Ban_Enforce X-Git-Tag: xonotic-v0.8.1~139^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f7b39d76944d944eaa3df6566fc9e0d236c005e5;p=xonotic%2Fxonotic-data.pk3dir.git Use loop macro in Ban_Enforce --- diff --git a/qcsrc/server/ipban.qc b/qcsrc/server/ipban.qc index b7ea0cc2f..d8a70fe65 100644 --- a/qcsrc/server/ipban.qc +++ b/qcsrc/server/ipban.qc @@ -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)) {