summaryrefslogtreecommitdiff
path: root/web/web_scoreboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r--web/web_scoreboard.c6
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)