]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Do it correctly
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index ce70da9a76ae482be41f041c67e29aaf3c70c218..00ba629bf9c38999b7b0e9fbf1b37c45b8741541 100644 (file)
@@ -394,7 +394,7 @@ void Vore()
 \r
                Vore_Regurgitate(self);\r
                if(random() < cvar("g_vore_stealprey"))\r
-               if(self.predator.team != target_predator.team) // don't steal a team mate's prey\r
+               if not(teams_matter && self.predator.team == target_predator.team) // don't steal a team mate's prey\r
                if(Swallow_condition_check(self))\r
                {\r
                        oldself = self;\r