If DISPLAY_LAYERS is defined then getpos() will use remembered dungeon features and traps to look for a match in addition to the currently displayed glyphs. Useful if (for example) you want to use the "travel to" command to a staircase which has an item laying on top of it.
src/do_name.c patch