hedgewars/uWorld.pas
changeset 3770 f54e8cb9a12b
parent 3764 eb91c02f2d84
child 3773 f552c7b439fa
--- a/hedgewars/uWorld.pas	Thu Aug 26 06:06:28 2010 -0400
+++ b/hedgewars/uWorld.pas	Thu Aug 26 14:02:48 2010 +0100
@@ -778,6 +778,13 @@
       inc(r.x, cTeamHealthWidth + 2);
       r.w:= 3;
       DrawFromRect(TeamHealthBarWidth + 16, cScreenHeight + DrawHealthY, @r, HealthTex);
+
+      // draw ai kill counter for gfAISurvival
+      if (GameFlags and gfAISurvival) <> 0 then begin
+          DrawTexture(TeamHealthBarWidth + 22, cScreenHeight + DrawHealthY,
+              RenderStringTex(''+inttostr(stats.AIKills)+'', Clan^.Color, fnt16));
+      end;
+
       // if highlighted, draw flag and other contents again to keep their colors
       // this approach should be faster than drawing all borders one by one tinted or not
       if highlight then