From 2709b070c5fde766c0e9fe98ade169a865e6c9ad Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 3 May 2022 21:55:21 -0700 Subject: web: oi from c --- web/web_control.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/web_control.c') 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; } -- cgit v1.2.3-70-g09d2