diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-03 11:44:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-03 11:44:16 +0200 |
commit | c973a889d0003db3213a8c91cbb2b3705c6f8814 (patch) | |
tree | 70993d721c852226002c3d74d4bb2d4c178522cc /public/join.js | |
parent | 8fd3afb00368d72cb1b6d79d15f6bb2ed115190f (diff) | |
download | server-c973a889d0003db3213a8c91cbb2b3705c6f8814.tar.gz |
Allow deleting started solo games.
Diffstat (limited to 'public/join.js')
-rw-r--r-- | public/join.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |