Fix accidental rope removinf from ammo in some cases
authorunc0rr
Sun, 25 Jan 2009 18:07:52 +0000
changeset 1752 769986d39202
parent 1751 b67a124afe53
child 1753 2ccba26f1aa4
Fix accidental rope removinf from ammo in some cases
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Jan 25 18:07:10 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jan 25 18:07:52 2009 +0000
@@ -822,8 +822,9 @@
 			Gear^.Y:= Gear^.Y + ty;
 			Gear^.Elasticity:= tt;
 			Gear^.doStep:= @doStepRopeWork;
-			with HHGear^ do State:= State and not (gstAttacking or gstMoving);
-			tt:= _0
+			with HHGear^ do State:= State and not (gstAttacking or gstMoving or gstHHHJump);
+			tt:= _0;
+			exit
 			end;
 		tx:= tx + Gear^.dX + Gear^.dX;
 		ty:= ty + Gear^.dY + Gear^.dY;