hedgewars/uGearsHandlersRope.pas
changeset 7596 2c12b8cbd002
parent 7595 bbac3c0f0c68
child 7601 c96ff1a053d0
--- a/hedgewars/uGearsHandlersRope.pas	Fri Aug 24 19:55:43 2012 -0400
+++ b/hedgewars/uGearsHandlersRope.pas	Fri Aug 24 20:43:44 2012 -0400
@@ -172,7 +172,7 @@
         if TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) and not TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) then
             HHGear^.dX.isNegative:= not HHGear^.dX.isNegative;
         if (TestCollisionYwithGear(HHGear, hwSign(HHGear^.dY)) <> 0) and (TestCollisionYwithGear(HHGear, -hwSign(HHGear^.dY)) = 0) then
-            HHGear^.dY.isNegative:= not HHGear^.dX.isNegative;
+            HHGear^.dY.isNegative:= not HHGear^.dY.isNegative;
         end;
 
     mdX := ropeDx + HHGear^.dX;