look, a bug!
This commit is contained in:
parent
597a7030c5
commit
3eb90e938f
6
quiz.js
6
quiz.js
|
@ -85,12 +85,12 @@ function switchToScoreboard() {
|
|||
|
||||
function updateScores() {
|
||||
for(var i = 0; i < playerNames.length; i++) {
|
||||
if (!playerNames[i])
|
||||
continue;
|
||||
|
||||
if (playerNames[i]) {
|
||||
// FIXME: eq(i) is bad when first player is empty
|
||||
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
|
||||
$('#players .player'+i+' .score').text(playerScores[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Game screen is the one with the question in question
|
||||
|
|
Loading…
Reference in New Issue