# HG changeset patch # User nemo # Date 1313372944 14400 # Node ID 9ffa2e2ec5501ee89a1f2d964828d974b89998e0 # Parent 1a326ba319c994be4b71b9452ff6a4412da3259d draw health tag relative to screen if State <> 0 diff -r 1a326ba319c9 -r 9ffa2e2ec550 hedgewars/uVisualGears.pas --- a/hedgewars/uVisualGears.pas Mon Aug 15 00:23:32 2011 +0200 +++ b/hedgewars/uVisualGears.pas Sun Aug 14 21:49:04 2011 -0400 @@ -477,7 +477,13 @@ DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex); end; vgtSmallDamageTag: DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex); - vgtHealthTag: if Gear^.Tex <> nil then DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex); + vgtHealthTag: if Gear^.Tex <> nil then + begin + if Gear^.State = 0 then + DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex) + else DrawTexture(round(Gear^.X), round(Gear^.Y), Gear^.Tex); + end; +//if Gear^.Tex <> nil then DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex); vgtStraightShot: DrawRotatedF(TSprite(Gear^.State), round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Frame, 1, Gear^.Angle); end; if (cReducedQuality and rqAntiBoom) = 0 then