From 9ee81a83ee971b316446e337110d3bbfea7bfc8f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 18 May 2022 16:54:58 -0700 Subject: web: use match info funcs instead of checking mode --- web/web_scoreboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/web_scoreboard.c') 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) -- cgit v1.2.3-70-g09d2