Rope: Keep rope selected if sliding on ground and secondary weapon selected
For consistency w/ previous rope commit
--- 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