]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Remove the swallow model in more circumstances
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Jul 2011 21:54:11 +0000 (00:54 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Jul 2011 21:54:11 +0000 (00:54 +0300)
data/qcsrc/server/vore.qc

index 9f9dd7657096d03d13206a785dec349704047ef7..36d5705312c0bf6b985a527090caa2ddcb0f4f09 100644 (file)
@@ -209,8 +209,8 @@ void Vore_SwallowModel_Think()
                dist *= self.scale;\r
        self.view_ofs = '1 0 0' * dist;\r
 \r
-       // if our swallow progress is gone, the swallow model also goes\r
-       if(!self.owner.swallow_progress_prey)\r
+       // if our swallow progress is gone or we are dead, the swallow model also goes away\r
+       if(!self.owner.swallow_progress_prey || self.owner.deadflag != DEAD_NO || self.owner.classname != "player")\r
        {\r
                remove(self.owner.swallow_model);\r
                self.owner.swallow_model = world;\r