fix for issue 293 : "rope stuck after picking crate"
authorsheepluva
Thu, 06 Sep 2012 15:47:52 +0200
changeset 7674 aead327f1e1a
parent 7673 e06b83cbde74
child 7676 7e712605764c
fix for issue #293 : "rope stuck after picking crate"
hedgewars/uGearsHandlersRope.pas
--- a/hedgewars/uGearsHandlersRope.pas	Wed Sep 05 12:36:47 2012 +0200
+++ b/hedgewars/uGearsHandlersRope.pas	Thu Sep 06 15:47:52 2012 +0200
@@ -323,9 +323,8 @@
 
     HHGear^.dX.QWordValue:= HHGear^.dX.QWordValue shr 2;
     HHGear^.dY.QWordValue:= HHGear^.dY.QWordValue shr 2;
-    if not haveCollision then
+    if (not haveCollision) and ((Gear^.State and gsttmpFlag) <> 0) then
         begin
-        if (Gear^.State and gsttmpFlag) <> 0 then
             begin
             PlaySound(sndRopeRelease);
             if Gear^.Hedgehog^.CurAmmoType <> amParachute then