diff options
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r-- | web/dartboat_wasm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index f43afb0..3be713b 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -40,9 +40,10 @@ EMSCRIPTEN_KEEPALIVE bool user_visit(struct match_state *state, int points) { if (state->l1->rem <= 0 || state->l2->rem <= 0) return false; - if (points > state->l1->rem || points > 180 || points == 179 || - points == 178 || points == 176 || points == 175 || points == 173 || - points == 172 || points == 169 || points == 166 || points == 163) + if (points > state->l1->rem || state->l1->rem - points == 1 || + points > 180 || points == 179 || points == 178 || points == 176 || + points == 175 || points == 173 || points == 172 || points == 169 || + points == 166 || points == 163) return false; struct leg *l = state->l1; |