diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:23:48 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:25:07 -0700 |
commit | 15ff00e056a98ab4210dde3d4461a88849d6c1d4 (patch) | |
tree | 280b8d248baee5d2ae0dcc2117e3f2b309d128ec /web/web_prompt.c | |
parent | c93897ed2013f20d6ece33815971d206fd0d056e (diff) | |
download | dartboat-15ff00e056a98ab4210dde3d4461a88849d6c1d4.tar.gz dartboat-15ff00e056a98ab4210dde3d4461a88849d6c1d4.tar.xz |
move a bunch of general match logic from web to lib
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); |