From ba56ae56ebec73ca8ea966fde4bb385f911a6669 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 4 May 2022 11:13:39 -0700 Subject: web: fix averages after undo --- web/web_control.c | 4 ++-- 1 file 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); } -- cgit v1.2.3-70-g09d2