# HG changeset patch # User unc0rr # Date 1321119672 18000 # Node ID 27b82275dc347b1631009708d61ed5a3f38b7051 # Parent 9eb6c4a8d633a76027fb2563cf4bd2270f94c828 faster math diff -r 9eb6c4a8d633 -r 27b82275dc34 hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Sat Nov 12 11:02:02 2011 -0500 +++ b/hedgewars/HHHandlers.inc Sat Nov 12 12:41:12 2011 -0500 @@ -1131,7 +1131,7 @@ if (Gear^.Message and (gmAllStoppable or gmLJump or gmHJump) = 0) and (Gear^.State and (gstHHJumping or gstHHHJump or gstAttacking) = 0) and not Gear^.dY.isNegative and - (GameTicks mod (100*hwRound(cMaxWindSpeed/(cGravity/2))) = 0) and + (GameTicks mod (100*hwRound(cMaxWindSpeed*2/cGravity)) = 0) and (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then begin slope:= CalcSlopeBelowGear(Gear);