autodescribe fix for 'I'
> Attempting to look at 'I' (remembered, unseen monster) > with farlook/quicklook/getpos autodescribe mis-reports it > as "unexplored area".
This commit is contained in:
+4
-1
@@ -605,6 +605,8 @@ lookat(coordxy x, coordxy y, char *buf, char *monbuf)
|
|||||||
} else {
|
} else {
|
||||||
Strcpy(buf, "unexplored area");
|
Strcpy(buf, "unexplored area");
|
||||||
}
|
}
|
||||||
|
} else if (glyph_is_invisible(glyph)) {
|
||||||
|
/* already handled */
|
||||||
} else if (!glyph_is_cmap(glyph)) {
|
} else if (!glyph_is_cmap(glyph)) {
|
||||||
Strcpy(buf, "unexplored area");
|
Strcpy(buf, "unexplored area");
|
||||||
} else {
|
} else {
|
||||||
@@ -1377,7 +1379,8 @@ do_screen_description(coord cc, boolean looked, int sym, char *out_str,
|
|||||||
if (pm && for_supplement)
|
if (pm && for_supplement)
|
||||||
*for_supplement = pm;
|
*for_supplement = pm;
|
||||||
|
|
||||||
*firstmatch = look_buf;
|
if (look_buf[0] != '\0')
|
||||||
|
*firstmatch = look_buf;
|
||||||
if (*(*firstmatch)) {
|
if (*(*firstmatch)) {
|
||||||
Snprintf(temp_buf, sizeof temp_buf, " (%s)", *firstmatch);
|
Snprintf(temp_buf, sizeof temp_buf, " (%s)", *firstmatch);
|
||||||
(void) strncat(out_str, temp_buf,
|
(void) strncat(out_str, temp_buf,
|
||||||
|
|||||||
Reference in New Issue
Block a user