From d29946052c48269c0f0386305d6f51854cb55079 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 10 May 2022 01:52:08 -0700 Subject: web: display who throws first in visit log --- web/web_scoreboard.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/web_scoreboard.c') 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) { -- cgit v1.2.3-70-g09d2