hedgewars/uGearsHedgehog.pas
changeset 9139 2ae44c4381cd
parent 9080 9b42757d7e71
child 9160 fc46e75f6b72
child 9283 76e68c136a11
--- a/hedgewars/uGearsHedgehog.pas	Wed Jun 05 16:28:30 2013 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Wed Jun 05 12:47:33 2013 -0400
@@ -808,7 +808,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;