summaryrefslogtreecommitdiff
path: root/web/web_control.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-04 11:13:39 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-04 11:13:39 -0700
commitba56ae56ebec73ca8ea966fde4bb385f911a6669 (patch)
treecde306fd9aeabc1535859b2a4b089be0aa285acd /web/web_control.c
parenta28369258b89e013103edcca20355eb61fffdf69 (diff)
downloaddartboat-ba56ae56ebec73ca8ea966fde4bb385f911a6669.tar.gz
dartboat-ba56ae56ebec73ca8ea966fde4bb385f911a6669.tar.xz
web: fix averages after undo
Diffstat (limited to 'web/web_control.c')
-rw-r--r--web/web_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web_control.c b/web/web_control.c
index 5bf3c7d..321809c 100644
--- a/web/web_control.c
+++ b/web/web_control.c
@@ -211,10 +211,10 @@ void user_undo()
++state->boat_undone;
}
- scoreboard_set_player_avg(state->active_player, 0);
+ update_player_avg(state->active_player, 0);
update_player_rem(state->active_player, l->rem);
if (state->mode == M_PVC) {
- scoreboard_set_player_avg(2, 0);
+ update_player_avg(2, 0);
update_player_rem(2, state->legs[1]->rem);
}