summaryrefslogtreecommitdiff
path: root/web/web_prompt.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 01:38:05 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 01:38:05 -0700
commita4f1e60ece6dac22c4d913fc70124873803f30ab (patch)
tree405793459509a17f37a1223196b9deaf71514ba7 /web/web_prompt.c
parent2886add52aeed172289f3bddd995eda0b0c92a67 (diff)
downloaddartboat-a4f1e60ece6dac22c4d913fc70124873803f30ab.tar.gz
dartboat-a4f1e60ece6dac22c4d913fc70124873803f30ab.tar.xz
web: add (incomplete) support for 3+ player matches
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r--web/web_prompt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c
index c9e4f55..ad907bc 100644
--- a/web/web_prompt.c
+++ b/web/web_prompt.c
@@ -185,9 +185,7 @@ void prompt_end_match()
void prompt_select_mode()
{
- dom_set_uniq_class(NULL, "visible", "[id$=-info-inner]");
- for (int pn = 1; pn < 3; ++pn)
- clear_player_info(pn);
+ scoreboard_hide_info();
dom_set_content("#visits", NULL);
set_prompt_mode(PM_SELECT_MODE);
@@ -199,6 +197,7 @@ void prompt_select_mode()
add_list_opt("One-player scoreboard");
add_list_opt("Two-player scoreboard");
add_list_opt("Computer vs computer");
+ add_list_opt("Three-player scoreboard");
flush_list_opts();
}