forked from FOSS/BangleApps
score: tennis scoring: allow corrections
parent
a441d423a4
commit
4c6e9a0860
|
@ -171,7 +171,12 @@ function score(player) {
|
|||
}
|
||||
|
||||
if (scores[cSet][player] > 0) {
|
||||
scores[cSet][player]--;
|
||||
if (tScores[player] === 0 && tScores[~~!player] === 0) {
|
||||
scores[cSet][player]--;
|
||||
} else {
|
||||
tScores[player] = 0;
|
||||
tScores[~~!player] = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (matchEnded()) return;
|
||||
|
|
Loading…
Reference in New Issue