# HG changeset patch # User Wuzzy # Date 1505956105 -7200 # Node ID c8ee50955faecd36c1560e72a7fcd44dc45bb9bd # Parent 39d780f9bf3524054376a5630a99b2526d374247 Fix vgtAmmo showing air attack icon if frame is amNothing diff -r 39d780f9bf35 -r c8ee50955fae hedgewars/uVisualGears.pas --- a/hedgewars/uVisualGears.pas Thu Sep 21 03:07:29 2017 +0200 +++ b/hedgewars/uVisualGears.pas Thu Sep 21 03:08:25 2017 +0200 @@ -339,7 +339,8 @@ tinted:= true; Tint($FF, $FF, $FF, round(Gear^.alpha * $FF)); DrawTextureF(ropeIconTex, Gear^.scale, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, 0, 1, 32, 32); - DrawTextureF(SpritesData[sprAMAmmos].Texture, Gear^.scale * 0.90, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame - 1, 1, 32, 32); + if Gear^.Frame <> ord(amNothing) then + DrawTextureF(SpritesData[sprAMAmmos].Texture, Gear^.scale * 0.90, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame - 1, 1, 32, 32); end; vgtShell: begin if Gear^.FrameTicks < $FF then