Fix sinegun dealing 1 damage when shooting straight up. Reduces sine gun knockback strength by 1.25%
authoralfadur
Tue, 11 Sep 2018 22:44:32 +0200
changeset 13774 506cca5a48cb
parent 13773 effef930bd57
child 13775 8a7699ccb608
Fix sinegun dealing 1 damage when shooting straight up. Reduces sine gun knockback strength by 1.25% This was caused by AmmoShove, which had a strenght which was *right* above the threshold for fall damage.
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Tue Sep 11 21:32:28 2018 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Tue Sep 11 22:44:32 2018 +0200
@@ -5478,7 +5478,7 @@
         Gear^.dY.isNegative := not Gear^.dY.isNegative;
         HHGear^.dX := Gear^.dX;
         HHGear^.dY := Gear^.dY;
-        AmmoShove(Gear, 0, 80);
+        AmmoShove(Gear, 0, 79);
         Gear^.dX.isNegative := not Gear^.dX.isNegative;
         Gear^.dY.isNegative := not Gear^.dY.isNegative;
         end;