diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-24 19:58:04 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-24 19:58:43 -0700 |
commit | 9a02c0367351c311734f42ab2afe2b377ca12908 (patch) | |
tree | 845b652771bb82a7ffaef39919dc56f08e2f207b /web | |
parent | 14dd3ef4196af7c2269d80931dfcdcd1c3068857 (diff) | |
download | dartboat-9a02c0367351c311734f42ab2afe2b377ca12908.tar.gz dartboat-9a02c0367351c311734f42ab2afe2b377ca12908.tar.xz |
display 2-dart checkout if different than 3-dart checkout
Diffstat (limited to 'web')
-rw-r--r-- | web/static/sw.js | 2 | ||||
-rw-r--r-- | web/web_scoreboard.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/web/static/sw.js b/web/static/sw.js index f09f5fc..33f3c0a 100644 --- a/web/static/sw.js +++ b/web/static/sw.js @@ -1,5 +1,5 @@ const CACHE_PREFIX = 'dartboat-' -const CACHE_VERSION = '24'; +const CACHE_VERSION = '25'; const CACHE_NAME = `${CACHE_PREFIX}${CACHE_VERSION}`; const CACHE_FILES = [ 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) { |