hedgewars/uGearsHandlersRope.pas
changeset 12700 28210d2a9a36
parent 12697 cb6b70392459
child 12705 16fcd59295e3
--- a/hedgewars/uGearsHandlersRope.pas	Wed Oct 11 23:14:29 2017 +0200
+++ b/hedgewars/uGearsHandlersRope.pas	Wed Oct 11 23:41:25 2017 +0200
@@ -66,6 +66,8 @@
     or (TestCollisionYwithGear(HHGear, 1) <> 0) then
         begin
         DeleteGear(Gear);
+        if (TestCollisionYwithGear(HHGear, 1) <> 0) and (GetAmmoEntry(HHGear^.Hedgehog^, amRope)^.Count >= 1) and (HHGear^.Hedgehog^.CurAmmoType <> amRope) then
+            SetWeapon(amRope);
         isCursorVisible := false;
         ApplyAmmoChanges(HHGear^.Hedgehog^);
         exit