hedgewars/GSHandlers.inc
changeset 5063 d0722d0b024d
parent 5052 74a81c276d67
child 5067 57101536cf86
--- a/hedgewars/GSHandlers.inc	Mon Mar 28 21:27:06 2011 +0400
+++ b/hedgewars/GSHandlers.inc	Mon Mar 28 21:44:17 2011 +0400
@@ -219,7 +219,10 @@
         //else
         //    PlaySound(sndOw1, Gear^.Hedgehog^.Team^.voicepack);
 
-        ApplyDamage(Gear, CurrentHedgehog, dmg, dsFall);
+        if Gear^.LastDamage <> nil then
+            ApplyDamage(Gear, Gear^.LastDamage, dmg, dsFall)
+            else
+            ApplyDamage(Gear, CurrentHedgehog, dmg, dsFall);
     end
 end;