diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-14 13:22:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-12-14 13:22:42 +0100 |
commit | 5a6b29c7407473a066165d0b96edd805902389df (patch) | |
tree | 571efbf3abd6e3599cf7258a56e54264c864374e /public | |
parent | 4e9a5aa80175da0cb4c77cf4cf333a71d646220e (diff) | |
download | server-5a6b29c7407473a066165d0b96edd805902389df.tar.gz |
Fix roles in random games!
Diffstat (limited to 'public')
-rw-r--r-- | public/join.js | 2 |
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); |