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 5eaf07b..8bb67e1 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