]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Autodigest is not a feature for bots
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 21:00:07 +0000 (23:00 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 21:00:07 +0000 (23:00 +0200)
data/qcsrc/server/vore.qc

index b4a2126eb58548a3760ffc540183119f98da9266..ae7a55f27207965449f495499dab00b294856501 100644 (file)
@@ -144,10 +144,12 @@ void Vore_AutoDigest(entity e)
 {\r
        // if the predator has the autodigest preference enabled, begin digesting new prey automatically\r
 \r
-       if not(e.cvar_cl_vore_autodigest)\r
-               return;\r
        if not(cvar("g_vore_digestion"))\r
                return;\r
+       if not(e.cvar_cl_vore_autodigest)\r
+               return;\r
+       if(clienttype(e) != CLIENTTYPE_REAL)\r
+               return; // this feature is only for players\r
 \r
        entity head;\r
        if(teams_matter)\r