From 6d8ae1a15e5c7012529b556b8a4d47e295a70b8a Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 24 Apr 2022 00:59:42 -0700 Subject: web: display user as active when undoing after bot win --- web/dartboat_wasm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index ceed714..d18cd12 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -282,6 +282,9 @@ EMSCRIPTEN_KEEPALIVE bool user_undo() { switch_active_user(); } + if (state->mode == M_PVC) + EM_ASM({setPlayerActive($0)}, state->active_p); + struct leg *l = state->active_l; struct visit *v = l->visits + --l->n_visits; l->rem += v->points; -- cgit v1.2.3-70-g09d2