]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Deadflag works better
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 21:12:37 +0000 (00:12 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 4 Oct 2010 21:12:37 +0000 (00:12 +0300)
qcsrc/server/w_minelayer.qc

index 5a1f8fa6689eef9b90f2ae8d3834e7bad3cec0e2..4c8b20e972f5a762f8bf11330433fa7bd4414948 100644 (file)
@@ -140,7 +140,7 @@ void W_Mine_Think (void)
 
        // a player's mines shall explode if he disconnects or dies
        // TODO: Do this on team change too
 
        // a player's mines shall explode if he disconnects or dies
        // TODO: Do this on team change too
-       if(self.owner.classname != "player" || self.owner.health <= 0)
+       if(self.owner.classname != "player" || self.owner.deadflag != DEAD_NO)
        {
                other = world;
                self.projectiledeathtype |= HITTYPE_BOUNCE;
        {
                other = world;
                self.projectiledeathtype |= HITTYPE_BOUNCE;