skip all dx/dy mod if Power is 0
authornemo
Tue, 16 Oct 2012 13:41:23 -0400
changeset 7761 6dc1be8ff73e
parent 7760 ccc8bd5205ff
child 7762 d2fd8040534f
skip all dx/dy mod if Power is 0
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Tue Oct 16 17:16:08 2012 +0400
+++ b/hedgewars/uGears.pas	Tue Oct 16 13:41:23 2012 -0400
@@ -819,7 +819,7 @@
                 Gear^.dX:= Ammo^.dX * Power * _0_005;
                 Gear^.dY:= Ammo^.dY * Power * _0_005
                 end
-            else if (Ammo^.Kind <> gtFlame) or (Gear^.Kind = gtHedgehog) then
+            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