# HG changeset patch # User unc0rr # Date 1251649818 0 # Node ID f1bbcca1ae077de71b9e26fc5776696605e1c20d # Parent 8f6508c97f3f5c3fff19c0d3e35ff3e9809550cb Prevent "free knocking" bug diff -r 8f6508c97f3f -r f1bbcca1ae07 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;