# HG changeset patch
# User alfadur
# Date 1592766638 -10800
# Node ID 1b044b47773b5800f4afc7b8b5044599d7f61618
# Parent  adbd2bcf7159ba22b052c9f9ca7a0c3f310e980e
make minigun shove cumulative

diff -r adbd2bcf7159 -r 1b044b47773b hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Sun Jun 21 03:17:57 2020 +0300
+++ b/hedgewars/uGearsUtils.pas	Sun Jun 21 22:10:38 2020 +0300
@@ -1462,8 +1462,16 @@
                 end
             else if ((Ammo^.Kind <> gtFlame) or (Gear^.Kind = gtHedgehog)) and (Power <> 0) then
                 begin
-                Gear^.dX:= Ammo^.dX * Power * _0_01;
-                Gear^.dY:= Ammo^.dY * Power * _0_01
+                if (Ammo^.Kind in [gtMinigunBullet]) then
+                    begin    
+                    Gear^.dX:= Gear^.dX + Ammo^.dX * Power * _0_01;
+                    Gear^.dY:= Gear^.dY + Ammo^.dY * Power * _0_01
+                    end 
+                else
+                    begin
+                    Gear^.dX:= Ammo^.dX * Power * _0_01;
+                    Gear^.dY:= Ammo^.dY * Power * _0_01
+                    end
                 end;
 
             if (not isZero(Gear^.dX)) or (not isZero(Gear^.dY)) then