leaderscore = WinningConditionHelper_topscore;
secondscore = WinningConditionHelper_secondscore;
+ if (limit)
+ fragsleft = limit - leaderscore;
if (leadlimit)
leadingfragsleft = secondscore + leadlimit - leaderscore;
- if (autocvar_leadlimit_and_fraglimit && leadlimit && limit)
+
+ if (autocvar_leadlimit_and_fraglimit && leadlimit)
{
- fragsleft = limit - leaderscore;
- fragsleft = max(leadingfragsleft, fragsleft);
+ if (limit)
+ fragsleft = max(leadingfragsleft, fragsleft);
}
- else
+ else if (leadlimit)
{
if (limit)
- {
- fragsleft = limit - leaderscore;
- if (leadlimit)
- fragsleft = min(fragsleft, leadingfragsleft);
- }
- else if (leadlimit)
+ fragsleft = min(fragsleft, leadingfragsleft);
+ else
fragsleft = leadingfragsleft;
}
- if (fragsleft > 3)
- fragsleft = 0;
-
if (fragsleft_last != fragsleft) // do not announce same remaining frags multiple times
{
if (fragsleft == 1)