diff options
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r-- | web/web_scoreboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 907b1e5..657c326 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -306,7 +306,7 @@ void draw_visits_dense() elemv[elemc++] = create_div("0", "visit-n"); for (int i = 0; i < np; ++i) { - if (i + 1 == match_opts->throws_first) + if (i + 1 == state->m->starting_player) elemv[elemc++] = create_div("", "throws-first"); else elemv[elemc++] = create_div("", ""); @@ -404,7 +404,7 @@ void draw_visits() char buf[32], buf2[32]; snprintf(buf, sizeof(buf), "%d", state->m->legs[0]->start); - if (match_opts->throws_first == 1) + if (state->m->starting_player == 1) elemv[elemc++] = create_div("", // content added via CSS "visit-p1-pts throws-first"); elemv[elemc++] = create_div(buf, "visit-p1-rem"); @@ -412,7 +412,7 @@ void draw_visits() if (state->m->n_players != 1) { snprintf(buf, sizeof(buf), "%d", state->m->legs[1]->start); elemv[elemc++] = create_div(buf, "visit-p2-rem"); - if (match_opts->throws_first == 2) + if (state->m->starting_player == 2) elemv[elemc++] = create_div("", "visit-p2-pts throws-first"); } |