hedgewars/GSHandlers.inc
changeset 7623 addc5b262617
parent 7621 f0d739c34f2b
child 7627 e1e112687fd6
--- a/hedgewars/GSHandlers.inc	Wed Aug 29 16:42:22 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Wed Aug 29 09:58:23 2012 -0400
@@ -1483,7 +1483,7 @@
     or TestCollisionXwithGear(Gear, -2) 
     or (TestCollisionYwithGear(Gear, 2) <> 0) then
         begin
-        if (hwAbs(Gear^.dX) > _0) or (hwAbs(Gear^.dY) > _0) then
+        if (not isZero(Gear^.dX)) or (not isZero(Gear^.dY)) then
             begin
             PlaySound(sndRopeAttach);
             Gear^.dX:= _0;