diff options
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r-- | web/web_prompt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c index 86cc97f..37745e8 100644 --- a/web/web_prompt.c +++ b/web/web_prompt.c @@ -399,7 +399,8 @@ void prompt_comp_visit() set_prompt_mode(PM_DARTBOARD); char buf[64]; - sprintf(buf, "%s is throwing…", state_active_leg()->name); + sprintf(buf, "%s is throwing…", + state->m->players[state->m->active_player - 1].name); prompt_set_msgl(buf); prompt_set_msgr(NULL); } @@ -421,7 +422,7 @@ void prompt_end_match() char buf[64]; sprintf(buf, "%s wins.", - state->legs[match_winning_player() - 1]->name); + state->m->players[match_winning_player(state->m) - 1].name); prompt_set_msgl(buf); prompt_set_msgr(NULL); |