From c973a889d0003db3213a8c91cbb2b3705c6f8814 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 3 Aug 2024 11:44:03 +0200 Subject: Allow deleting started solo games. --- public/join.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 88ec8d9..08e56fb 100644 --- a/public/join.js +++ b/public/join.js @@ -77,9 +77,9 @@ function may_start() { } function may_delete() { - if (game.owner_id !== user_id || game.is_match || game.status >= 2) + if (game.owner_id !== user_id || game.is_match) return false - if (game.status > 0 && game.user_count > 0) + if (game.status > 0 && game.user_count > 1) return false return true } -- cgit v1.2.3