score: fix scrolling in correction mode
parent
7f50370669
commit
f5b9c5d005
|
|
@ -186,7 +186,7 @@ function matchWon(player) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function matchEnded() {
|
function matchEnded() {
|
||||||
return matchWon(0) || matchWon(1);
|
return (matchWon(0) || matchWon(1)) && cSet > (setsWon(0) + setsWon(1) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function matchScore(player) {
|
function matchScore(player) {
|
||||||
|
|
@ -207,17 +207,17 @@ function updateCurrentSet(val) {
|
||||||
}
|
}
|
||||||
setFirstShownSet();
|
setFirstShownSet();
|
||||||
|
|
||||||
|
if (val > 0) {
|
||||||
|
scores[cSet][2] = getTime();
|
||||||
|
|
||||||
if (matchEnded()) {
|
if (matchEnded()) {
|
||||||
firstShownSet = 0;
|
firstShownSet = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (val > 0) {
|
|
||||||
scores[cSet][2] = getTime();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function score(player) {
|
function score(player) {
|
||||||
if (!matchEnded() || correctionMode) {
|
if (!matchEnded()) {
|
||||||
setFirstShownSet();
|
setFirstShownSet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue