diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 21:55:21 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 21:55:21 -0700 |
commit | 2709b070c5fde766c0e9fe98ade169a865e6c9ad (patch) | |
tree | 3e8c19cccfbd9fa88b21c8e44e9cd7f7e6d30b9f /web/web_control.c | |
parent | 1ab3c4995e44f44a845dce7b241554c0621527b9 (diff) | |
download | dartboat-2709b070c5fde766c0e9fe98ade169a865e6c9ad.tar.gz dartboat-2709b070c5fde766c0e9fe98ade169a865e6c9ad.tar.xz |
web: oi from c
Diffstat (limited to 'web/web_control.c')
-rw-r--r-- | web/web_control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/web_control.c b/web/web_control.c index 94e58b7..e1e322d 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -145,7 +145,7 @@ EMSCRIPTEN_KEEPALIVE void user_visit(int points) { if (!is_points_valid(points, state->active_leg->rem)) { - EM_ASM(oi()); + oi(); return; } @@ -175,7 +175,7 @@ EMSCRIPTEN_KEEPALIVE void user_undo() { if (!state->legs[0]->n_visits) { - EM_ASM(oi()); + oi(); return; } @@ -229,7 +229,7 @@ EMSCRIPTEN_KEEPALIVE void user_num_darts(int n) { if (n < 1 || n > 3) { - EM_ASM(oi()); + oi(); return; } @@ -243,7 +243,7 @@ EMSCRIPTEN_KEEPALIVE void start_match(int mode) { if (mode < M_FIRST || mode > M_LAST) { - EM_ASM(oi()); + oi(); return; } |