diff -r a447993f2ad7 -r 18cbb75aba59 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sun Feb 05 23:24:43 2012 +0400 +++ b/hedgewars/uWorld.pas Sun Feb 05 15:20:49 2012 -0500 @@ -877,7 +877,7 @@ end; procedure DrawWorldStereo(Lag: LongInt; RM: TRenderMode); -var i, t: LongInt; +var i, t, h: LongInt; r: TSDL_Rect; tdx, tdy: Double; s: string[15]; @@ -1065,6 +1065,7 @@ for t:= 0 to Pred(TeamsCount) do with TeamsArray[t]^ do begin + h:= 0; highlight:= bShowFinger and (CurrentTeam = TeamsArray[t]) and ((RealTicks mod 1000) < 500); if highlight then @@ -1088,6 +1089,14 @@ r.w:= 3; DrawFromRect(TeamHealthBarWidth + 16, cScreenHeight + DrawHealthY + smallScreenOffset, @r, HealthTex); + if not highlight and not hasGone then + for i:= 0 to cMaxHHIndex do + if Hedgehogs[i].Gear <> nil then + begin + inc(h,round(Hedgehogs[i].Gear^.Health*(TeamHealthBarWidth/TeamHealth))); + if h < TeamHealthBarWidth-1 then DrawTexture(14 + h, cScreenHeight + DrawHealthY + smallScreenOffset + 1, SpritesData[sprSlider].Texture); + end; + // draw ai kill counter for gfAISurvival if (GameFlags and gfAISurvival) <> 0 then begin