]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_items.qc
If an item is trying to respawn when the warmup stage ends remove its waypoint
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 79c39ae95d7998899e99529451df30ff22b05fed..c507581de5d0d53e679feec6dcd2ad93777f0026 100644 (file)
@@ -566,6 +566,9 @@ void Item_Reset()
        self.think = SUB_Null;
        self.nextthink = 0;
 
+       if(self.waypointsprite_attached)
+               WaypointSprite_Kill(self.waypointsprite_attached);
+
        if(self.flags & FL_POWERUP) // do not spawn powerups initially!
                Item_ScheduleInitialRespawn(self);
 }