Also detach dead prey if their predator gets swallowed. Avoids model conflicts.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:23:33 +0000 (22:23 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:23:33 +0000 (22:23 +0200)
data/qcsrc/server/vore.qc

index d6f5777a689a41a977a2f00132a5156ff2c059b7..ea485cbe7c3fcd0d624854ea95a710e4310342f7 100644 (file)
@@ -514,8 +514,9 @@ void Vore()
 // Code that addresses the prey:\r
 // --------------------------------\r
 \r
-       // fulldigest - detach dead prey if their predator died while they were inside\r
-       if(self.fakepredator.classname == "player" && self.fakepredator.deadflag != DEAD_NO)\r
+       // fulldigest - detach dead prey if their predator died or got swallowed\r
+       if(self.fakepredator.classname == "player")\r
+       if(self.fakepredator.deadflag != DEAD_NO || self.fakepredator.predator.classname == "player")\r
                Vore_DeadPrey_Detach(self);\r
 \r
        if(self.predator.classname != "player")\r