diff options
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; } |