Prevent "free knocking" bug
authorunc0rr
Sun, 30 Aug 2009 16:30:18 +0000
changeset 2339 f1bbcca1ae07
parent 2338 8f6508c97f3f
child 2340 3b35fd5f67c7
Prevent "free knocking" bug
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Aug 30 13:53:27 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Aug 30 16:30:18 2009 +0000
@@ -964,7 +964,7 @@
 		begin
 		CheckHHDamage(HHGear);
 		HHGear^.dY:= _0;
-		HHGear^.State:= HHGear^.State and not (gstHHJumping or gstHHHJump);
+		//HHGear^.State:= HHGear^.State and not (gstHHJumping or gstHHHJump);
 		end else
 		begin
 		HHGear^.Y:= HHGear^.Y + HHGear^.dY;
@@ -982,7 +982,7 @@
 				Gear^.Y:= Gear^.Y + ty;
 				Gear^.Elasticity:= tt;
 				Gear^.doStep:= @doStepRopeWork;
-				with HHGear^ do State:= State and not (gstAttacking or gstMoving or gstHHHJump);
+				with HHGear^ do State:= State and not (gstAttacking or gstHHJumping or gstHHHJump);
 				
 				RemoveFromAmmo;
 				
@@ -1004,7 +1004,7 @@
 	else
 		begin
 		Gear^.doStep:= @doStepRopeWork;
-		with HHGear^ do State:= State and not (gstAttacking or gstHHHJump);
+		with HHGear^ do State:= State and not (gstAttacking or gstHHJumping or gstHHHJump);
 
 		RemoveFromAmmo;