# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1509672221 -3600
# Node ID 3fc7569c1203cf43e38df96275da09d8dca2cefe
# Parent  d3113a4cba360715ccce1466553e5bd3b5dc0573
Backed out changeset 28210d2a9a36 (fixes bug 553)

This fixes a desync when you take fall damage while roping and having a secondary ammo selected.

diff -r d3113a4cba36 -r 3fc7569c1203 hedgewars/uGearsHandlersRope.pas
--- a/hedgewars/uGearsHandlersRope.pas	Wed Nov 01 22:49:54 2017 -0400
+++ b/hedgewars/uGearsHandlersRope.pas	Fri Nov 03 02:23:41 2017 +0100
@@ -66,8 +66,6 @@
     or (TestCollisionYwithGear(HHGear, 1) <> 0) then
         begin
         DeleteGear(Gear);
-        if (TestCollisionYwithGear(HHGear, 1) <> 0) and (GetAmmoEntry(HHGear^.Hedgehog^, amRope)^.Count >= 1) and ((Ammoz[HHGear^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_AltUse) <> 0) then
-            SetWeapon(amRope);
         isCursorVisible := false;
         ApplyAmmoChanges(HHGear^.Hedgehog^);
         exit