1
0
Fork 0

score: fix scrolling in correction mode

master
Mika Dede 2021-09-28 16:44:33 +02:00
parent 7f50370669
commit f5b9c5d005
No known key found for this signature in database
GPG Key ID: 546586DC38D45BBD
1 changed files with 6 additions and 6 deletions

View File

@ -186,7 +186,7 @@ function matchWon(player) {
}
function matchEnded() {
return matchWon(0) || matchWon(1);
return (matchWon(0) || matchWon(1)) && cSet > (setsWon(0) + setsWon(1) - 1);
}
function matchScore(player) {
@ -207,17 +207,17 @@ function updateCurrentSet(val) {
}
setFirstShownSet();
if (matchEnded()) {
firstShownSet = 0;
}
if (val > 0) {
scores[cSet][2] = getTime();
if (matchEnded()) {
firstShownSet = 0;
}
}
}
function score(player) {
if (!matchEnded() || correctionMode) {
if (!matchEnded()) {
setFirstShownSet();
}