faster math
authorunc0rr
Sat, 12 Nov 2011 12:41:12 -0500
changeset 6331 27b82275dc34
parent 6329 9eb6c4a8d633
child 6333 350490edcd11
faster math
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);