extend double jump activation window
authoralfadur
Mon, 22 Jun 2020 22:09:00 +0300
changeset 15649 ea189ee9394f
parent 15648 b0078df61a59
child 15650 e63748a3aa52
extend double jump activation window
hedgewars/uFloat.pas
hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uFloat.pas	Sun Jun 21 22:30:59 2020 +0300
+++ b/hedgewars/uFloat.pas	Mon Jun 22 22:09:00 2020 +0300
@@ -118,6 +118,7 @@
          _0_0128: hwFloat = (isNegative: false; QWordValue:    54975581);
            _0_02: hwFloat = (isNegative: false; QWordValue:    85899345);
            _0_03: hwFloat = (isNegative: false; QWordValue:   128849018);
+           _0_05: hwFloat = (isNegative: false; QWordValue:   214748365);
            _0_07: hwFloat = (isNegative: false; QWordValue:   300647710);
            _0_08: hwFloat = (isNegative: false; QWordValue:   343597383);
             _0_1: hwFloat = (isNegative: false; QWordValue:   429496730);
--- a/hedgewars/uGearsHedgehog.pas	Sun Jun 21 22:30:59 2020 +0300
+++ b/hedgewars/uGearsHedgehog.pas	Mon Jun 22 22:09:00 2020 +0300
@@ -1410,7 +1410,7 @@
     wasJumping:= ((HHGear^.State and gstHHJumping) <> 0);
 
     if ((HHGear^.Message and gmHJump) <> 0) and wasJumping and ((HHGear^.State and gstHHHJump) = 0) then
-        if (not (hwAbs(HHGear^.dX) > cLittle)) and (HHGear^.dY < -_0_02) then
+        if (not (hwAbs(HHGear^.dX) > cLittle)) and (HHGear^.dY < _0_05) then
             begin
             HHGear^.State:= HHGear^.State or gstHHHJump;
             HHGear^.dY:= -_0_25;