look, a bug!

This commit is contained in:
Astro 2010-09-21 02:15:20 +02:00
parent 597a7030c5
commit 3eb90e938f

View File

@ -85,13 +85,13 @@ function switchToScoreboard() {
function updateScores() { function updateScores() {
for(var i = 0; i < playerNames.length; i++) { for(var i = 0; i < playerNames.length; i++) {
if (!playerNames[i]) if (playerNames[i]) {
continue; // FIXME: eq(i) is bad when first player is empty
$('#scoreboard dl dd').eq(i).text(playerScores[i]); $('#scoreboard dl dd').eq(i).text(playerScores[i]);
$('#players .player'+i+' .score').text(playerScores[i]); $('#players .player'+i+' .score').text(playerScores[i]);
} }
} }
}
// Game screen is the one with the question in question // Game screen is the one with the question in question
function switchToGame() { function switchToGame() {