Revert sinegun brokenness to previous levels
authoralfadur
Tue, 11 Sep 2018 21:32:28 +0200
changeset 13803 effef930bd57
parent 13800 f26c9e931f5a
child 13806 506cca5a48cb
Revert sinegun brokenness to previous levels
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Tue Sep 11 18:34:27 2018 +0200
+++ b/hedgewars/uGearsUtils.pas	Tue Sep 11 21:32:28 2018 +0200
@@ -1397,13 +1397,13 @@
 
             if (Gear^.Kind = gtHedgehog) and (Gear^.Hedgehog^.King or (Gear^.Hedgehog^.Effects[heFrozen] > 0)) then
                 begin
-                Gear^.dX:= Gear^.dX + Ammo^.dX * Power * _0_005;
-                Gear^.dY:= Gear^.dY + Ammo^.dY * Power * _0_005
+                Gear^.dX:= Ammo^.dX * Power * _0_005;
+                Gear^.dY:= Ammo^.dY * Power * _0_005
                 end
             else if ((Ammo^.Kind <> gtFlame) or (Gear^.Kind = gtHedgehog)) and (Power <> 0) then
                 begin
-                Gear^.dX:= Gear^.dX + Ammo^.dX * Power * _0_01;
-                Gear^.dY:= Gear^.dY + Ammo^.dY * Power * _0_01
+                Gear^.dX:= Ammo^.dX * Power * _0_01;
+                Gear^.dY:= Ammo^.dY * Power * _0_01
                 end;
 
             if (not isZero(Gear^.dX)) or (not isZero(Gear^.dY)) then