From 29d471c8eea0bcf5d23b9e63180e9f1b7089850c Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 10 May 2022 16:56:15 -0700 Subject: web: add exit dialogue while match is active --- web/web_control.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/web_control.c') diff --git a/web/web_control.c b/web/web_control.c index 4495d51..e75b703 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -1,4 +1,5 @@ #include "web_control.h" +#include "web_dom.h" #include "web_match.h" #include "web_opts.h" #include "web_prompt.h" @@ -7,6 +8,7 @@ #include "comp.h" +#include #include #include #include @@ -286,12 +288,14 @@ void start_match() update_player_avg(2, 0); } + dom_enable_exit_dialogue(true); draw_visits(); handle_next(); } void end_match() { + dom_enable_exit_dialogue(false); if (state) free_state(); handle_next(); } -- cgit v1.2.3-70-g09d2