diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 01:52:08 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-10 01:52:08 -0700 |
commit | d29946052c48269c0f0386305d6f51854cb55079 (patch) | |
tree | 6f8837bf36197e2e594226735ff3eb228e11c84d /web/web_scoreboard.c | |
parent | cf7b5519c257c96f426edf045b07e29e8aeb4e72 (diff) | |
download | dartboat-d29946052c48269c0f0386305d6f51854cb55079.tar.gz dartboat-d29946052c48269c0f0386305d6f51854cb55079.tar.xz |
web: display who throws first in visit log
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r-- | web/web_scoreboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 8a6def0..cd50d2c 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -184,11 +184,16 @@ void draw_visits() char buf[32], buf2[32]; snprintf(buf, sizeof(buf), "%d", state->legs[0]->start); + if (match_opts->throws_first == 1) + elemv[elemc++] = create_div("∗", "visit-p1-pts throws-first"); elemv[elemc++] = create_div(buf, "visit-p1-rem"); elemv[elemc++] = create_div("0", "visit-n"); if (state->mode != M_P) { snprintf(buf, sizeof(buf), "%d", state->legs[1]->start); elemv[elemc++] = create_div(buf, "visit-p2-rem"); + if (match_opts->throws_first == 2) + elemv[elemc++] = create_div("∗", + "visit-p2-pts throws-first"); } for (int i = 0; i < n_visits; ++i) { |