]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a silly bug, that caused the world to be treated as a predator when taking damage...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 13:53:45 +0000 (16:53 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Jul 2011 13:53:45 +0000 (16:53 +0300)
data/qcsrc/server/g_damage.qc

index 5eaf07b2cfd5eadced1f054b77f82c196b068e03..8bb67e1cc059d9f1eaefc6d0071408a0073a30ad 100644 (file)
@@ -703,7 +703,7 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
                        entity e;\r
                        FOR_EACH_PLAYER(e)\r
                        {\r
-                               if(e.predator == targ)\r
+                               if(e.predator != world && e.predator == targ)\r
                                if(random() < cvar("g_balance_vore_escapeprobability") * damage)\r
                                        Vore_Regurgitate(e);\r
                        }\r