Score board was shown every time if the first answer was false

This commit is contained in:
H4CK3R-01 2021-07-09 17:58:34 +02:00 committed by H4CK3R-01
parent f7dc76cac7
commit 6ca0f7f9aa

View File

@ -268,7 +268,7 @@ function start_game() {
break; break;
} }
if (x === 1 && y === 9) { if (x === 1 && y === 9 && data.position !== 0) {
card = new Card(game_board_size, "", card = new Card(game_board_size, "",
{"text": playerNames[0] ? playerNames[0] + ": " + positions[0] : ("Kein Spieler"), "status": false}, {"text": playerNames[0] ? playerNames[0] + ": " + positions[0] : ("Kein Spieler"), "status": false},
{"text": playerNames[1] ? playerNames[1] + ": " + positions[1] : ("Kein Spieler"), "status": false}, {"text": playerNames[1] ? playerNames[1] + ": " + positions[1] : ("Kein Spieler"), "status": false},