From 9a02c0367351c311734f42ab2afe2b377ca12908 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 24 May 2022 19:58:04 -0700 Subject: display 2-dart checkout if different than 3-dart checkout --- web/web_scoreboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/web_scoreboard.c') diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 35af7f4..2e998cc 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -176,9 +176,9 @@ void update_player_name(int pn, char *str) void update_player_sugg(int pn, int rem) { - char *sugg = checkouts_suggested(rem); - scoreboard_set_player_sugg(pn, sugg ? sugg : ""); - free(sugg); + char buf[32]; + checkouts_suggested_3_2(buf, rem); + scoreboard_set_player_sugg(pn, buf); } static double calc_avg(struct leg *l, int n_darts) { -- cgit v1.2.3-70-g09d2