hedgewars/GSHandlers.inc
changeset 2730 f56592281526
parent 2726 a84fc5113d01
child 2735 f2008d0ce3f8
--- a/hedgewars/GSHandlers.inc	Sun Jan 31 16:35:18 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jan 31 19:24:22 2010 +0000
@@ -93,12 +93,14 @@
 if(Gear^.Invulnerable) then exit;
 if _0_4 < Gear^.dY then
 	begin
+	dmg:= ModifyDamage(1 + hwRound((hwAbs(Gear^.dY) - _0_4) * 70), Gear);
+    if dmg < 1 then exit;
+
 	if _0_6 < Gear^.dY then
 		PlaySound(sndOw4, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack)
 	else
 		PlaySound(sndOw1, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack);
 
-	dmg:= ModifyDamage(1 + hwRound((hwAbs(Gear^.dY) - _0_4) * 70), Gear);
     ApplyDamage(Gear, dmg);
 	end
 end;