hedgewars/HHHandlers.inc
changeset 3913 f9cb69eecefe
parent 3909 4ba25a3d15af
child 3915 c05855146440
--- a/hedgewars/HHHandlers.inc	Mon Sep 27 04:58:15 2010 +0200
+++ b/hedgewars/HHHandlers.inc	Mon Sep 27 04:58:26 2010 +0200
@@ -621,8 +621,10 @@
    begin
    if (Gear^.dY.isNegative) and TestCollisionYKick(Gear, -1) then Gear^.dY:= _0;
    Gear^.State:= Gear^.State or gstMoving;
-   Gear^.dY:= Gear^.dY + cGravity
-   end else
+   if isUnderwater then Gear^.dY:= Gear^.dY + cGravity / _2
+   else Gear^.dY:= Gear^.dY + cGravity
+   end 
+else
    begin
    if ((hwAbs(Gear^.dX) + hwAbs(Gear^.dY)) < _0_55)
       and ((Gear^.State and gstHHJumping) <> 0) then SetLittle(Gear^.dX);