Also show SD warning 3 and 7 rounds before SD
authorWuzzy <Wuzzy2@mail.ru>
Mon, 10 Dec 2018 10:01:24 +0100
changeset 14428 7dbc3e5f8129
parent 14427 b48c270328a5
child 14429 d1c1f899df20
Also show SD warning 3 and 7 rounds before SD
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Mon Dec 10 09:39:34 2018 +0100
+++ b/hedgewars/uGears.pas	Mon Dec 10 10:01:24 2018 +0100
@@ -416,8 +416,8 @@
                 begin
                 i:= cSuddenDTurns - TotalRoundsPre;
                 s:= ansistring(inttostr(i));
-                // X rounds before SD. X = 1, 2, 5, 10, 15, 20, 25, 50, 100, ...
-                if (i > 0) and ((i <= 2) or ((i mod 50 = 0) or ((i <= 25) and (i mod 5 = 0)))) then
+                // X rounds before SD. X = 1, 2, 3, 5, 7, 10, 15, 20, 25, 50, 100, ...
+                if (i > 0) and ((i <= 3) or (i = 7) or ((i mod 50 = 0) or ((i <= 25) and (i mod 5 = 0)))) then
                     begin
                     if i = 1 then
                         AddCaption(trmsg[sidRoundSD], capcolDefault, capgrpGameState)