# HG changeset patch # User Wuzzy # Date 1558719889 -7200 # Node ID 0dbd06bf90f46f69b31c688b25dd6e381b6dc66e # Parent a4a058dcbbd6c28a202a2c87c50331f3dc86fbd1 Add new Hedgehog.png frame for ammo with SelAmmoIcon diff -r a4a058dcbbd6 -r 0dbd06bf90f4 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Fri May 24 16:01:30 2019 +0200 +++ b/hedgewars/uGearsRender.pas Fri May 24 19:44:49 2019 +0200 @@ -930,13 +930,24 @@ 0); end else - DrawHedgehog(sx, sy, - sign, - 0, - 4, - 0); - - HatVisible:= true; + // Special hog sprite that makes hog "look" towards the selection icon. + // Only works with NoHat for now since it would look weird/creepy for many hats. + if (HH^.Hat = 'NoHat') and ((Gear^.State and (gstMoving or gstAttacking)) = 0) and ((Ammoz[amt].Ammo.Propz and ammoprop_ShowSelIcon) <> 0) then + DrawHedgehog(sx, sy, + sign, + 0, + 6, + 0) + // Default idle hedgehog + else + begin + DrawHedgehog(sx, sy, + sign, + 0, + 4, + 0); + HatVisible:= true; + end; end; defaultPos:= false diff -r a4a058dcbbd6 -r 0dbd06bf90f4 share/hedgewars/Data/Graphics/Hedgehog.png Binary file share/hedgewars/Data/Graphics/Hedgehog.png has changed