summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-14 13:22:25 +0100
committerTor Andersson <tor@ccxvii.net>2021-12-14 13:22:42 +0100
commit5a6b29c7407473a066165d0b96edd805902389df (patch)
tree571efbf3abd6e3599cf7258a56e54264c864374e
parent4e9a5aa80175da0cb4c77cf4cf333a71d646220e (diff)
downloadserver-5a6b29c7407473a066165d0b96edd805902389df.tar.gz
Fix roles in random games!
-rw-r--r--public/join.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/join.js b/public/join.js
index 6828ca6..24e10ab 100644
--- a/public/join.js
+++ b/public/join.js
@@ -88,7 +88,7 @@ function update() {
for (let i = 0; i < roles.length; ++i) {
let role = roles[i];
let role_id = "role_" + role.replace(/ /g, "_");
- if (game.random && game.status === 0)
+ if (game.is_random && game.status === 0)
role = "Random " + (i+1);
document.getElementById(role_id + "_name").textContent = role;
let player = players.find(p => p.role === role);