]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If an item is trying to respawn when the warmup stage ends remove its waypoint
authorterencehill <piuntn@gmail.com>
Fri, 6 Jan 2012 15:06:37 +0000 (16:06 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 6 Jan 2012 15:06:37 +0000 (16:06 +0100)
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);
 }