diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 16:54:58 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 16:54:58 -0700 |
commit | 9ee81a83ee971b316446e337110d3bbfea7bfc8f (patch) | |
tree | 4e374d5f0dee387c2e0d8f9389aeefbc4fe935e3 /web/web_scoreboard.c | |
parent | 3fda7193b52eed1c724b6d5e5b8373c0a3fbf963 (diff) | |
download | dartboat-9ee81a83ee971b316446e337110d3bbfea7bfc8f.tar.gz dartboat-9ee81a83ee971b316446e337110d3bbfea7bfc8f.tar.xz |
web: use match info funcs instead of checking mode
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 3b288c5..d1bfa7e 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -129,7 +129,7 @@ void update_player_rem(int pn, int rem) sprintf(str, "%d", rem); scoreboard_set_player_rem(pn, str); - if (pn == 1 || state->mode != M_PVC) + if (!match_player_is_comp(pn)) update_player_sugg(pn, rem); } @@ -178,7 +178,7 @@ void draw_visits() int elemc = 0; elemv[elemc++] = create_div(state->legs[0]->name, "visit-p1-name"); - if (state->mode != M_P) + if (match_num_players() != 1) elemv[elemc++] = create_div(state->legs[1]->name, "visit-p2-name"); @@ -189,7 +189,7 @@ void draw_visits() "visit-p1-pts throws-first icon"); elemv[elemc++] = create_div(buf, "visit-p1-rem"); elemv[elemc++] = create_div("0", "visit-n"); - if (state->mode != M_P) { + if (match_num_players() != 1) { snprintf(buf, sizeof(buf), "%d", state->legs[1]->start); elemv[elemc++] = create_div(buf, "visit-p2-rem"); if (match_opts->throws_first == 2) |