From 3e38c720ad6f62a4e2946bd9b692541827be5f3d Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Wed, 29 Jun 2022 20:13:45 -0400 Subject: [PATCH] Don't describe 'more info' prompt in #glance help When using #glance, the player is never prompted about whether she wants 'more info' about something on the map, even if flags.help is true and she has pressed '.' -- the 'more info' prompt is exclusive to #whatis. getpos_help already changed its description of '.' based on whether 'help' was on or off; adjust those criteria so that the description of the 'more info' prompt is only included for #whatis, where it is actually relevant. I recently looked at the help while using #glance and got confused about why the 'more info' prompt was never appearing, so hopefully this should help forestall that sort of thing. #glance also prompts only once, so there's some other information about "moving to another spot" in the help text which is not relevant -- that could definitely be addressed as well but I think it's less likely to be confusing, so I didn't bother with it in this commit. --- src/do_name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/do_name.c b/src/do_name.c index 7c5d591e6..eaf58f23a 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -221,7 +221,7 @@ getpos_help(boolean force, const char *goal) Sprintf(sbuf, " '%s' describe current spot,%s move to another spot;", visctrl(g.Cmd.spkeys[NHKF_GETPOS_PICK]), - flags.help ? " prompt if 'more info'," : ""); + flags.help && !force ? " prompt if 'more info'," : ""); putstr(tmpwin, 0, sbuf); Sprintf(sbuf, " '%s' describe current spot, move to another spot;",