Make mouse clicklook report only the specific tile

Previously the mouse clicklook mentioned every tile that matched
the character symbol, leading to overload of information and
if playing with tiles, it was mostly useless. Also the most
important bit - the tile info - was last in the text.

Now mouse clicklook only reports the exact tile information
that was clicked on.
This commit is contained in:
Pasi Kallinen
2022-08-25 17:11:43 +03:00
parent b8f8b170a8
commit 51ac21bc88
3 changed files with 4 additions and 4 deletions

View File

@@ -491,6 +491,7 @@ extern void heal_legs(int);
extern char *dxdy_to_dist_descr(coordxy, coordxy, boolean);
extern char *coord_desc(coordxy, coordxy, char *, char);
extern void auto_describe(coordxy, coordxy);
extern boolean getpos_menu(coord *, int);
extern int getpos(coord *, boolean, const char *);
extern void getpos_sethilite(void(*f)(int), boolean(*d)(coordxy,coordxy));

View File

@@ -6277,7 +6277,7 @@ doclicklook(void)
return ECMD_OK;
g.context.move = FALSE;
(void) do_look(2, &g.clicklook_cc);
auto_describe(g.clicklook_cc.x, g.clicklook_cc.y);
return ECMD_OK;
}

View File

@@ -16,7 +16,6 @@ static void gloc_filter_init(void);
static void gloc_filter_done(void);
static boolean gather_locs_interesting(coordxy, coordxy, int);
static void gather_locs(coord **, int *, int);
static void auto_describe(int, int);
static void truncate_to_map(int *, int *, schar, schar);
static void do_mgivenname(void);
static boolean alreadynamed(struct monst *, char *, char *);
@@ -553,8 +552,8 @@ coord_desc(coordxy x, coordxy y, char *outbuf, char cmode)
RESTORE_WARNING_FORMAT_NONLITERAL
static void
auto_describe(int cx, int cy)
void
auto_describe(coordxy cx, coordxy cy)
{
coord cc;
int sym = 0;