From: Mario Date: Thu, 24 Dec 2015 06:51:55 +0000 (+1000) Subject: Add a deprecation note for FOR_EACH_REALCLIENT X-Git-Tag: xonotic-v0.8.2~1396 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aa18036e4367a72ffe6dee3fea5c31013f7c3139;p=xonotic%2Fxonotic-data.pk3dir.git Add a deprecation note for FOR_EACH_REALCLIENT --- diff --git a/qcsrc/server/_all.qh b/qcsrc/server/_all.qh index 2920a7659..c1ee6c828 100644 --- a/qcsrc/server/_all.qh +++ b/qcsrc/server/_all.qh @@ -22,7 +22,7 @@ const string STR_OBSERVER = "observer"; #define FOR_EACH_CLIENTSLOT(v) for (v = world; (v = nextent(v)) && (etof(v) <= maxclients); ) #define FOR_EACH_CLIENT(v) FOR_EACH_CLIENTSLOT(v) if (IS_CLIENT(v)) -#define FOR_EACH_REALCLIENT(v) FOR_EACH_CLIENT(v) if (IS_REAL_CLIENT(v)) +// NOTE: FOR_EACH_REALCLIENT deprecated! Use the following instead: FOREACH_CLIENT(IS_REAL_CLIENT(it), LAMBDA(yourcode)); // NOTE: FOR_EACH_PLAYER deprecated! Use the following instead: FOREACH_CLIENT(IS_PLAYER(it), LAMBDA(yourcode)); // NOTE: FOR_EACH_SPEC deprecated! Use the following instead: FOREACH_CLIENT(IS_SPEC(it), LAMBDA(yourcode));