]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_items.qc
Merge remote branch 'origin/terencehill/powerups_respawntime_fix'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 4afccd9bee8c7c385177e0038ef677281783ce4b..b26c840ff0c8834ba446c01939fe8760095a95c1 100644 (file)
@@ -568,6 +568,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) | (self.weapons & WEPBIT_SUPERWEAPONS)) // do not spawn powerups initially!
                        Item_ScheduleInitialRespawn(self);
        }