diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-04 11:13:39 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-04 11:13:39 -0700 |
commit | ba56ae56ebec73ca8ea966fde4bb385f911a6669 (patch) | |
tree | cde306fd9aeabc1535859b2a4b089be0aa285acd | |
parent | a28369258b89e013103edcca20355eb61fffdf69 (diff) | |
download | dartboat-ba56ae56ebec73ca8ea966fde4bb385f911a6669.tar.gz dartboat-ba56ae56ebec73ca8ea966fde4bb385f911a6669.tar.xz |
web: fix averages after undo
-rw-r--r-- | web/web_control.c | 4 |
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); } |