hedgewars/GSHandlers.inc
changeset 5063 d0722d0b024d
parent 5052 74a81c276d67
child 5067 57101536cf86
equal deleted inserted replaced
5062:e2d38329b84a 5063:d0722d0b024d
   217         //if _0_6 < Gear^.dY then
   217         //if _0_6 < Gear^.dY then
   218         //    PlaySound(sndOw4, Gear^.Hedgehog^.Team^.voicepack)
   218         //    PlaySound(sndOw4, Gear^.Hedgehog^.Team^.voicepack)
   219         //else
   219         //else
   220         //    PlaySound(sndOw1, Gear^.Hedgehog^.Team^.voicepack);
   220         //    PlaySound(sndOw1, Gear^.Hedgehog^.Team^.voicepack);
   221 
   221 
   222         ApplyDamage(Gear, CurrentHedgehog, dmg, dsFall);
   222         if Gear^.LastDamage <> nil then
       
   223             ApplyDamage(Gear, Gear^.LastDamage, dmg, dsFall)
       
   224             else
       
   225             ApplyDamage(Gear, CurrentHedgehog, dmg, dsFall);
   223     end
   226     end
   224 end;
   227 end;
   225 
   228 
   226 ////////////////////////////////////////////////////////////////////////////////
   229 ////////////////////////////////////////////////////////////////////////////////
   227 ////////////////////////////////////////////////////////////////////////////////
   230 ////////////////////////////////////////////////////////////////////////////////