From de975396fe9eccd8f54c798b082c3d690b05c524 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 18 May 2022 15:59:48 -0700 Subject: web: change winning player message --- web/web_prompt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web/web_prompt.c') 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"); -- cgit v1.2.3-70-g09d2