hedgewars/uGears.pas
changeset 14412 7dbc3e5f8129
parent 14411 b48c270328a5
child 14413 d1c1f899df20
equal deleted inserted replaced
14411:b48c270328a5 14412:7dbc3e5f8129
   414             // Show Sudden Death warning message
   414             // Show Sudden Death warning message
   415             else if (TotalRoundsPre < cSuddenDTurns) and ((LastSuddenDWarn = -2) or (LastSuddenDWarn <> TotalRoundsPre)) then
   415             else if (TotalRoundsPre < cSuddenDTurns) and ((LastSuddenDWarn = -2) or (LastSuddenDWarn <> TotalRoundsPre)) then
   416                 begin
   416                 begin
   417                 i:= cSuddenDTurns - TotalRoundsPre;
   417                 i:= cSuddenDTurns - TotalRoundsPre;
   418                 s:= ansistring(inttostr(i));
   418                 s:= ansistring(inttostr(i));
   419                 // X rounds before SD. X = 1, 2, 5, 10, 15, 20, 25, 50, 100, ...
   419                 // X rounds before SD. X = 1, 2, 3, 5, 7, 10, 15, 20, 25, 50, 100, ...
   420                 if (i > 0) and ((i <= 2) or ((i mod 50 = 0) or ((i <= 25) and (i mod 5 = 0)))) then
   420                 if (i > 0) and ((i <= 3) or (i = 7) or ((i mod 50 = 0) or ((i <= 25) and (i mod 5 = 0)))) then
   421                     begin
   421                     begin
   422                     if i = 1 then
   422                     if i = 1 then
   423                         AddCaption(trmsg[sidRoundSD], capcolDefault, capgrpGameState)
   423                         AddCaption(trmsg[sidRoundSD], capcolDefault, capgrpGameState)
   424                     else
   424                     else
   425                         AddCaption(FormatA(trmsg[sidRoundsSD], s), capcolDefault, capgrpGameState);
   425                         AddCaption(FormatA(trmsg[sidRoundsSD], s), capcolDefault, capgrpGameState);