diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 15:59:48 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 15:59:48 -0700 |
commit | de975396fe9eccd8f54c798b082c3d690b05c524 (patch) | |
tree | 75e2c55fa290bd742ecc5643b26d4af4cc0c6823 /web/web_prompt.c | |
parent | cbbb37271bdfd5b51824f8b5a3ee5354236beff0 (diff) | |
download | dartboat-de975396fe9eccd8f54c798b082c3d690b05c524.tar.gz dartboat-de975396fe9eccd8f54c798b082c3d690b05c524.tar.xz |
web: change winning player message
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r-- | web/web_prompt.c | 8 |
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"); |