]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Attempt to fix nade damage
authorMario <zacjardine@y7mail.com>
Tue, 16 Dec 2014 22:48:57 +0000 (09:48 +1100)
committerMario <zacjardine@y7mail.com>
Tue, 16 Dec 2014 22:48:57 +0000 (09:48 +1100)
qcsrc/server/mutators/mutator_nades.qc

index 3a440e28df82630f3ecb052500076deb49274fc1..baf2716cb728079479ad03c0315d98c27b45c802 100644 (file)
@@ -596,7 +596,7 @@ void nade_damage(entity inflictor, entity attacker, float damage, float deathtyp
 
        self.velocity += force;
 
-       if(!damage || (self.flags & FL_ONGROUND && IS_PLAYER(attacker)))
+       if(damage <= 0 || ((self.flags & FL_ONGROUND) && IS_PLAYER(attacker)))
                return;
 
        if(self.health == self.max_health)