]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a deprecation note for FOR_EACH_REALCLIENT
authorMario <mario@smbclan.net>
Thu, 24 Dec 2015 06:51:55 +0000 (16:51 +1000)
committerMario <mario@smbclan.net>
Thu, 24 Dec 2015 06:51:55 +0000 (16:51 +1000)
qcsrc/server/_all.qh

index 2920a7659fec842c6b08e29b68129dbd52cc3ee6..c1ee6c828a3e6a451661e14d90305d617e21ebee 100644 (file)
@@ -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));