diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/dartboat_wasm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index 78538b5..6bbb97a 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -218,7 +218,7 @@ EMSCRIPTEN_KEEPALIVE void boat_visit() { } EMSCRIPTEN_KEEPALIVE bool user_visit(int points) { - if (state->l1->rem <= 0 || state->l2->rem <= 0 || + if (points < 0 || state->l1->rem <= 0 || state->l2->rem <= 0 || points > state->active_l->rem || state->active_l->rem - points == 1 || points > 180 || points == 179 || points == 178 || points == 176 || points == 175 || points == 173 || points == 172 || points == 169 || @@ -256,7 +256,6 @@ EMSCRIPTEN_KEEPALIVE bool user_visit(int points) { return true; } -// FIXME neg EMSCRIPTEN_KEEPALIVE void user_visit_to_rem(int rem) { user_visit(state->l1->rem - rem); } |