# HG changeset patch # User unc0rr # Date 1208020741 0 # Node ID 05e910ef2bf8fc26afb82e00b362110a0681f457 # Parent 150c7c87e66c150a27f5e0742975990209fbd26d - Fix hedgehog moveing direction after being shot by shotgun - Fix bad statistics info related to shotgun diff -r 150c7c87e66c -r 05e910ef2bf8 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sat Apr 12 17:00:06 2008 +0000 +++ b/hedgewars/uGears.pas Sat Apr 12 17:19:01 2008 +0000 @@ -837,10 +837,10 @@ if t^.Kind = gtHedgehog then begin AddDamageTag(hwRound(Gear^.X), hwRound(Gear^.Y), dmg, t); - uStats.HedgehogDamaged(Gear, dmg) + uStats.HedgehogDamaged(t, dmg) end; DeleteCI(t); - t^.dX:= t^.dX + SignAs(Gear^.dX * dmg * _0_01 + cHHKick, t^.X - Gear^.X); + t^.dX:= t^.dX + hwAbs(Gear^.dX * dmg * _0_01) + SignAs(cHHKick, Gear^.dX); t^.dY:= t^.dY + Gear^.dY * dmg * _0_01; t^.State:= t^.State or gstMoving; t^.Active:= true;