summaryrefslogtreecommitdiff
path: root/web/web_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r--web/web_prompt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c
index f3b523e..8e2bd74 100644
--- a/web/web_prompt.c
+++ b/web/web_prompt.c
@@ -168,10 +168,12 @@ void prompt_end_match()
{
scoreboard_set_player_active(-1);
+ char buf[64];
+ sprintf(buf, "%s wins.",
+ state->legs[match_winning_player() - 1]->name);
+
set_prompt_mode(PM_END_MATCH);
- prompt_set_msgl(
- state->mode == M_PVC && state->legs[1]->rem <= 0 ?
- "Computer wins. :(" : "You win! :)");
+ prompt_set_msgl(buf);
prompt_set_msgr(NULL);
dom_set_content("#key-submit", "END MATCH");