Fix coloring of mine timers
authorWuzzy <Wuzzy2@mail.ru>
Sun, 07 Apr 2019 22:57:58 +0200
changeset 14778 16168aff08c7
parent 14777 15bcd82ab86c
child 14779 bc0e86b0347b
Fix coloring of mine timers
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sun Apr 07 22:48:34 2019 +0200
+++ b/hedgewars/uGears.pas	Sun Apr 07 22:57:58 2019 +0200
@@ -278,6 +278,7 @@
                 begin
                 // Mine timer
                 if (curHandledGear^.Kind in [gtMine, gtSMine, gtAirMine]) then
+                    begin
                     if curHandledGear^.Tex = nil then
                         if (curHandledGear^.Karma = 1) and (not (GameType in [gmtDemo, gmtRecord])) then
                             // Secret mine timer
@@ -292,6 +293,7 @@
                             else
                                 curHandledGear^.Tex:= RenderStringTex(ansistring(inttostr(i) + FormatSettings.DecimalSeparator + inttostr(j)), $ff808080, fntSmall);
                             end
+                    end
                 // Timer of other gears
                 else if ((curHandledGear^.Timer > 500) and ((curHandledGear^.Timer mod 1000) = 0)) then
                     begin