Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f53ac
)
reset list of moved tiles after scoring
author
Laurent Mazet
<mazet@softndesign.org>
Mon, 23 Nov 2020 21:45:30 +0000
(22:45 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Mon, 23 Nov 2020 21:45:30 +0000
(22:45 +0100)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 4aaf1c0d586ae5d1d4cbc5d8cd80f7d90d4609cf..3ee40adcca17ed68b200d684f69000383327d973 100644
(file)
--- 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);
}