summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 6f686d2..84c7d70 100644
--- a/server.js
+++ b/server.js
@@ -1171,7 +1171,7 @@ const SQL_DELETE_GAME = SQL("DELETE FROM games WHERE game_id=? AND owner_id=?")
const SQL_START_GAME = SQL(`
update games set
status = 1,
- is_private = (is_private or user_count < player_count),
+ is_private = (is_private or user_count = 1 or user_count < player_count),
mtime = datetime(),
active = ?
where