diff -r e154ccca4dad -r 18422d205080 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Tue Oct 29 23:47:57 2013 +0400 +++ b/hedgewars/uWorld.pas Wed Oct 30 00:18:10 2013 +0400 @@ -1234,6 +1234,7 @@ var t, i, h, smallScreenOffset : LongInt; r: TSDL_Rect; highlight: boolean; + htex: PTexture; begin if TeamsCount * 20 > Longword(cScreenHeight) div 7 then // take up less screen on small displays begin @@ -1251,7 +1252,12 @@ highlight:= bShowFinger and (CurrentTeam = TeamsArray[t]) and ((RealTicks mod 1000) < 500); if highlight then + begin Tint(Clan^.Color shl 8 or $FF); + htex:= GenericHealthTexture + end + else + htex:= Clan^.HealthTex; // draw name DrawTexture(-NameTagTex^.w - 16, cScreenHeight + DrawHealthY + smallScreenOffset, NameTagTex); @@ -1263,13 +1269,13 @@ r.x:= 0; r.y:= 0; r.w:= 2 + TeamHealthBarWidth; - r.h:= HealthTex^.h; - DrawTextureFromRect(14, cScreenHeight + DrawHealthY + smallScreenOffset, @r, HealthTex); + r.h:= htex^.h; + DrawTextureFromRect(14, cScreenHeight + DrawHealthY + smallScreenOffset, @r, htex); // draw health bars right border inc(r.x, cTeamHealthWidth + 2); r.w:= 3; - DrawTextureFromRect(TeamHealthBarWidth + 15, cScreenHeight + DrawHealthY + smallScreenOffset, @r, HealthTex); + DrawTextureFromRect(TeamHealthBarWidth + 15, cScreenHeight + DrawHealthY + smallScreenOffset, @r, htex); if not hasGone then for i:= 0 to cMaxHHIndex do