]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_items.qc
Add a deprecation note for FOR_EACH_REALCLIENT
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 8bce02ca18ede89a42cd2499168c550ea3fbd342..fbb733405646e4c411c9995bc7b51035cb0dd89d 100644 (file)
@@ -532,13 +532,13 @@ void Item_RespawnCountdown ()
                if(self.waypointsprite_attached)
                {
                        setself(self.waypointsprite_attached);
-                       entity e;
-                       FOR_EACH_REALCLIENT(e)
-                               if(self.waypointsprite_visible_for_player(e))
+                       FOREACH_CLIENT(IS_REAL_CLIENT(it), LAMBDA(
+                               if(self.waypointsprite_visible_for_player(it))
                                {
-                                       msg_entity = e;
+                                       msg_entity = it;
                                        soundto(MSG_ONE, this, CH_TRIGGER, SND(ITEMRESPAWNCOUNTDOWN), VOL_BASE, ATTEN_NORM);    // play respawn sound
                                }
+                       ));
                        setself(this);
 
                        WaypointSprite_Ping(self.waypointsprite_attached);