]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/t_items.qc
Fix up waypointsprite_visible_for_player to not use self or other
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index a3ac40b670010a39cfff08aea30f1c7c826b4037..2016944bbe4fbd62cd03866e63ecfbabd42b9b66 100644 (file)
@@ -554,15 +554,13 @@ void Item_RespawnCountdown ()
 
                if(self.waypointsprite_attached)
                {
-                       setself(self.waypointsprite_attached);
                        FOREACH_CLIENT(IS_REAL_CLIENT(it), {
-                               if(self.waypointsprite_visible_for_player(it))
+                               if(self.waypointsprite_attached.waypointsprite_visible_for_player(self.waypointsprite_attached, it, it))
                                {
                                        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);
                        //WaypointSprite_UpdateHealth(self.waypointsprite_attached, self.count);