]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CheckLinks: more checking
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 28 Jan 2011 07:46:38 +0000 (08:46 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 28 Jan 2011 07:46:38 +0000 (08:46 +0100)
qcsrc/server/w_crylink.qc

index 8c23bae7fe98a1ffd33f7465f0247ca8532a09d7..aa5029c0a6ca623e7154672d045e3179702a841b 100644 (file)
@@ -16,6 +16,8 @@ void W_Crylink_CheckLinks(entity e)
 
        if(e == world)
                error("W_Crylink_CheckLinks: entity is world");
+       if(e.classname != "spike")
+               error("W_Crylink_CheckLinks: entity is not a spike");
 
        p = e;
        for(i = 0; i < 1000; ++i)