--- a/hedgewars/uAmmos.pas Wed Oct 11 18:52:50 2017 +0200
+++ b/hedgewars/uAmmos.pas Wed Oct 11 20:16:00 2017 +0200
@@ -331,11 +331,19 @@
begin
if (AmmoType <> amNothing) then
begin
- CurMinAngle:= Ammoz[AmmoType].minAngle;
- if Ammoz[AmmoType].maxAngle <> 0 then
- CurMaxAngle:= Ammoz[AmmoType].maxAngle
+ if ((CurAmmoGear <> nil) and (CurAmmoGear^.AmmoType = amRope)) then
+ begin
+ CurMaxAngle:= Ammoz[amRope].maxAngle;
+ CurMinAngle:= Ammoz[amRope].minAngle;
+ end
else
- CurMaxAngle:= cMaxAngle;
+ begin
+ CurMinAngle:= Ammoz[AmmoType].minAngle;
+ if Ammoz[AmmoType].maxAngle <> 0 then
+ CurMaxAngle:= Ammoz[AmmoType].maxAngle
+ else
+ CurMaxAngle:= cMaxAngle;
+ end;
with Hedgehog.Gear^ do
begin