summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-13 13:26:16 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-28 13:50:27 +0100
commit12a2a48e5e1158e1fcbed03862ab17e2869c09e4 (patch)
tree590ba3dc06917c9bb23c9a10f679c70bae7d8902
parentcccb8136eb28268ab42770160cbffc263a896dfc (diff)
downloadserver-12a2a48e5e1158e1fcbed03862ab17e2869c09e4.tar.gz
No need to flag ready games as "your turn" for owner.
This is already tracked in the SQL view is_active.
-rw-r--r--server.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/server.js b/server.js
index 3dc7e52..620fd58 100644
--- a/server.js
+++ b/server.js
@@ -1475,9 +1475,6 @@ function annotate_game_info(game, user_id, unread) {
}).join(", ")
}
- if (game.status === STATUS_OPEN && game.is_ready && game.owner_id === user_id)
- game.your_turn = true
-
if (your_count > 0) {
game.is_yours = true
if (your_count === 1)