diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-04 15:16:56 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-04 15:16:56 -0700 |
commit | df307f86ad32fcc841c770e8f5af72e8c0b80cfb (patch) | |
tree | 1881655a210d183ef775c1427906c765c1b14240 /web/web_control.c | |
parent | ba56ae56ebec73ca8ea966fde4bb385f911a6669 (diff) | |
download | dartboat-df307f86ad32fcc841c770e8f5af72e8c0b80cfb.tar.gz dartboat-df307f86ad32fcc841c770e8f5af72e8c0b80cfb.tar.xz |
web: abstract away most EM_ASM calls to dom file
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |