From: Mario Date: Tue, 16 Dec 2014 22:48:57 +0000 (+1100) Subject: Attempt to fix nade damage X-Git-Tag: xonotic-v0.8.0~70^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ad13c40396d26ea47b76a1e2e540ceab41269b8;p=xonotic%2Fxonotic-data.pk3dir.git Attempt to fix nade damage --- diff --git a/qcsrc/server/mutators/mutator_nades.qc b/qcsrc/server/mutators/mutator_nades.qc index 3a440e28d..baf2716cb 100644 --- a/qcsrc/server/mutators/mutator_nades.qc +++ b/qcsrc/server/mutators/mutator_nades.qc @@ -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)