diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 21:36:12 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-18 21:36:12 -0700 |
commit | 8956650dccfe1707005ef8be3655a4d986805312 (patch) | |
tree | c6da933dc26f94b3a3e4accb0a6a8192a7233a8c /web/web_prompt.c | |
parent | 5a1032e3e4b3479c84807d5610335c7e4f850158 (diff) | |
download | dartboat-8956650dccfe1707005ef8be3655a4d986805312.tar.gz dartboat-8956650dccfe1707005ef8be3655a4d986805312.tar.xz |
web: display comp name in throwing prompt
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r-- | web/web_prompt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c index 9213ca0..c9e4f55 100644 --- a/web/web_prompt.c +++ b/web/web_prompt.c @@ -138,7 +138,7 @@ void set_prompt_mode(enum prompt_mode mode) "visible", ".keypad"); } -void prompt_visit() +void prompt_user_visit() { set_prompt_mode(PM_VISIT); prompt_set_msgl("Enter points:"); @@ -148,10 +148,13 @@ void prompt_visit() dom_set_content("#key-rem", "REMAINING"); } -void prompt_bot_visit() +void prompt_comp_visit() { set_prompt_mode(PM_DARTBOARD); - prompt_set_msgl("Computer is throwing…"); + + char buf[64]; + sprintf(buf, "%s is throwing…", state_active_leg()->name); + prompt_set_msgl(buf); prompt_set_msgr(NULL); } |