]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
crylink: add some more CheckLinks calls... maybe this will figure out where the probl...
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 28 Jan 2011 07:45:05 +0000 (08:45 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 28 Jan 2011 07:45:05 +0000 (08:45 +0100)
qcsrc/server/w_crylink.qc

index 8a3380eae4356b657f00f04e1a936d2eb67c7107..8c23bae7fe98a1ffd33f7465f0247ca8532a09d7 100644 (file)
@@ -32,10 +32,13 @@ void W_Crylink_CheckLinks(entity e)
 
 void W_Crylink_Dequeue_Raw(entity own, entity prev, entity me, entity next)
 {
+       W_Crylink_CheckLinks(next);
        if(me == own.crylink_lastgroup)
                own.crylink_lastgroup = ((me == next) ? world : next);
        prev.queuenext = next;
        next.queueprev = prev;
+       if(me != next)
+               W_Crylink_CheckLinks(next);
 }
 
 void W_Crylink_Dequeue(entity e)
@@ -151,6 +154,8 @@ vector W_Crylink_LinkJoin(entity e, float jspeed, float jtime)
                //      p->velocity -> HUEG away from center
        }
 
+       W_Crylink_CheckLinks(e);
+
        return targ_origin;
 }
 
@@ -414,6 +419,7 @@ void W_Crylink_Attack (void)
                counter = counter + 1;
        }
        self.crylink_lastgroup = proj;
+       W_Crylink_CheckLinks(proj);
 }
 
 void W_Crylink_Attack2 (void)