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:
ca7a9e6
)
fix currentPlayer and lastPlayer values when playerName is changed
author
Laurent Mazet
<mazet@softndesign.org>
Sat, 9 Aug 2025 15:23:53 +0000
(17:23 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sat, 9 Aug 2025 15:23:53 +0000
(17:23 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 5f53c79588973625209522d2da4a3aced90239f5..22399cc4b9f8139e07a51c0c273d95b7ac48d214 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-1141,6
+1141,12
@@
} else {
blink(playerNameCell);
}
+ if (currentPlayer === playerName) {
+ currentPlayer = newName;
+ }
+ if (lastPlayer === playerName) {
+ lastPlayer = newName;
+ }
chatMessage("", format(_("{0} changed their name to {1}"), playerName, newName));
}
}