diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:50:36 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:54:12 -0700 |
commit | ee146e45b9ccc7f3b5dfd34973df538a42772b84 (patch) | |
tree | 3b91beb43a2cac1ad16eefa43b21c6d991d49ac1 /web/web_scoreboard.c | |
parent | 15ff00e056a98ab4210dde3d4461a88849d6c1d4 (diff) | |
download | dartboat-ee146e45b9ccc7f3b5dfd34973df538a42772b84.tar.gz dartboat-ee146e45b9ccc7f3b5dfd34973df538a42772b84.tar.xz |
store starting player as part of match data
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"); } |