# HG changeset patch # User nemo # Date 1368675218 14400 # Node ID b5f0fb670b38f080ebecb365534e23d958116e80 # Parent d38fb41583424d5599e67a3ce5bdae208032ea42 better way to do it that avoids screwing up angle bounds on single saucer diff -r d38fb4158342 -r b5f0fb670b38 hedgewars/uAmmos.pas --- a/hedgewars/uAmmos.pas Wed May 15 22:52:17 2013 -0400 +++ b/hedgewars/uAmmos.pas Wed May 15 23:33:38 2013 -0400 @@ -279,7 +279,7 @@ //SwitchNotHeldAmmo(Hedgehog); if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat); if CurAmmoGear <> nil then - SetWeapon(CurAmmoGear^.AmmoType) + CurAmmoType:= CurAmmoGear^.AmmoType else CurAmmoType:= amNothing; end end