hedgewars/uGearsUtils.pas
changeset 15647 1b044b47773b
parent 15301 b12f63054c94
child 15678 c34cad72cd85
--- 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