score: fix bug when the score was "5 - 7" (with score to win set to 6) it was adding one to 7.

pull/3638/head
aleixdev 2024-10-25 09:04:17 +02:00
parent 7994c9fb9a
commit fb3cd0fbc6
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ function currentSet() {
function shouldTiebreak() {
return settings.enableMaxScoreTiebreak &&
scores[cSet][0] === scores[cSet][1] &&
scores[cSet][0] + scores[cSet][1] === (maxScore() - 1) * 2;
}