hedgewars/uGearsHedgehog.pas
branchwebgl
changeset 9160 fc46e75f6b72
parent 9127 e350500c4edb
parent 9139 2ae44c4381cd
child 9521 8054d9d775fd
--- a/hedgewars/uGearsHedgehog.pas	Tue Jun 04 23:56:17 2013 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Sun Jun 09 12:22:53 2013 +0200
@@ -807,7 +807,8 @@
 var da: LongWord;
 begin
 with HHGear^.Hedgehog^ do
-    if ((CurAmmoGear <> nil) and (CurAmmoGear^.AmmoType = amRope) and ((HHGear^.State and (gstMoving or gstHHJumping)) = gstMoving))
+    if (((CurAmmoType = amRope) or ((CurAmmoGear <> nil) and (CurAmmoGear^.AmmoType = amRope))) and 
+            ((HHGear^.State and (gstMoving or gstHHJumping)) = gstMoving))
     or ((CurAmmoType = amPortalGun) and ((HHGear^.State and gstMoving) <> 0)) then
         da:= 2
     else da:= 1;