]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
FOR_EACH_OBSERVER is deprecated too
authorMario <mario@smbclan.net>
Thu, 24 Dec 2015 05:31:51 +0000 (15:31 +1000)
committerMario <mario@smbclan.net>
Thu, 24 Dec 2015 05:31:51 +0000 (15:31 +1000)
qcsrc/server/_all.qh

index 347eaf6cffc2635d120b3b81c18d231309cc76f2..6049d41d2eb269ce44a9190685b427df6fab2007 100644 (file)
@@ -26,7 +26,7 @@ const string STR_OBSERVER = "observer";
 
 // 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));
-#define FOR_EACH_OBSERVER(v) FOR_EACH_CLIENT(v) if (IS_OBSERVER(v))
+// NOTE: FOR_EACH_OBSERVER deprecated! Use the following instead: FOREACH_CLIENT(IS_OBSERVER(it), LAMBDA(yourcode));
 #define FOR_EACH_REALPLAYER(v) FOR_EACH_REALCLIENT(v) if (IS_PLAYER(v))
 
 #define FOREACH_CLIENT(cond, body) \