]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/sounds/all.qc
Kill FOR_EACH_REALPLAYER
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / sounds / all.qc
index 0ec413c37edd53c6d2572e5bcc0bce1128d63715..c5685df3a43e0adfdeb35ef4cd92c7187af72240 100644 (file)
@@ -128,11 +128,7 @@ float spamsound(entity e, int chan, string samp, float vol, float _atten)
 void play2team(float t, string filename)
 {
        if (autocvar_bot_sound_monopoly) return;
-       entity head;
-       FOR_EACH_REALPLAYER(head)
-       {
-               if (head.team == t) play2(head, filename);
-       }
+       FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && it.team == t, LAMBDA(play2(it, filename)));
 }
 
 void play2all(string samp)