hedgewars/uGearsRender.pas
changeset 15042 586ebee9de41
parent 15040 0dbd06bf90f4
child 15060 9dbbb4bc1dcd
equal deleted inserted replaced
15041:f764394839b2 15042:586ebee9de41
   929                             5,
   929                             5,
   930                             0);
   930                             0);
   931                     end
   931                     end
   932             else
   932             else
   933                 // Special hog sprite that makes hog "look" towards the selection icon.
   933                 // Special hog sprite that makes hog "look" towards the selection icon.
   934                 // Only works with NoHat for now since it would look weird/creepy for many hats.
   934                 // Only works without hat for now since it would look weird/creepy for many hats.
   935                 if (HH^.Hat = 'NoHat') and ((Gear^.State and (gstMoving or gstAttacking)) = 0) and ((Ammoz[amt].Ammo.Propz and ammoprop_ShowSelIcon) <> 0) then
   935                 if ((HH^.Hat = 'NoHat') or (HH^.HatTex = nil)) and ((Gear^.State and (gstMoving or gstAttacking)) = 0) and ((Ammoz[amt].Ammo.Propz and ammoprop_ShowSelIcon) <> 0) then
   936                     DrawHedgehog(sx, sy,
   936                     DrawHedgehog(sx, sy,
   937                         sign,
   937                         sign,
   938                         0,
   938                         0,
   939                         6,
   939                         6,
   940                         0)
   940                         0)