From df307f86ad32fcc841c770e8f5af72e8c0b80cfb Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 4 May 2022 15:16:56 -0700 Subject: web: abstract away most EM_ASM calls to dom file --- web/web_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/web_control.c') diff --git a/web/web_control.c b/web/web_control.c index 321809c..0c2d4bd 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -118,7 +118,7 @@ void handle_next() { if (!state) { prompt_select_mode(); - } else if (is_match_over()) { + } else if (match_is_over()) { if (state->num_darts || (state->mode == M_PVC && state->legs[1]->rem <= 0)) prompt_end_match(); @@ -194,7 +194,7 @@ void user_undo() if (state->mode == M_PVC) { set_active_player(1); } else if (state->mode == M_PVP) { - if (is_match_over()) + if (match_is_over()) set_active_player(state->active_player); else toggle_active_player(); -- cgit v1.2.3-70-g09d2