From: Laurent Mazet Date: Mon, 23 Nov 2020 21:45:30 +0000 (+0100) Subject: reset list of moved tiles after scoring X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=7d4301636f339bfddeb8142d436f56acf99d8958;p=trivabble.git reset list of moved tiles after scoring --- diff --git a/public/trivabble.js b/public/trivabble.js index 4aaf1c0..3ee40ad 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1043,6 +1043,9 @@ if (Object.prototype.hasOwnProperty.call(player, "score")) { const scoreCell = getScoreCell(playerName); + if (scoreCell.textContent != player.score) { + currentTilePlayed = {}; + } scoreCell.textContent = player.score; blink(scoreCell); }