From fcd2fc51faaeb2bddef1275cb1b3cc826232d242 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 10 Jul 2011 22:35:01 +0300 Subject: [PATCH] Fix a weird bug --- data/qcsrc/server/vore.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index c9897f62..e209b317 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -199,6 +199,7 @@ void Vore_AutoDigest(entity e) e.digesting = TRUE; } +.entity swallow_model; void Vore_SwallowModel_Think() { //update the necessary angles to match our view @@ -210,16 +211,14 @@ void Vore_SwallowModel_Think() // if our swallow progress is gone, the swallow model must also go if(!self.owner.swallow_progress_prey) { - self.nextthink = 0; - remove(self); - self = world; + remove(self.owner.swallow_model); + self.owner.swallow_model = world; return; } self.nextthink = time; } -.entity swallow_model; void Vore_SwallowModel_Update(entity prey) { // if we don't have a swallow model already, spawn one -- 2.39.2