MCPcopy Index your code
hub / github.com/NetHack/NetHack / there_cmd_menu_common

Function there_cmd_menu_common

src/cmd.c:4638–4654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4636}
4637
4638staticfn int
4639there_cmd_menu_common(
4640 winid win,
4641 coordxy x, coordxy y,
4642 int mod,
4643 int *act UNUSED)
4644{
4645 int K = 0;
4646
4647 if (mod == CLICK_1 || mod == CLICK_2) { /* ignore iflags.clicklook here */
4648 /* for self, only include "look at map symbol" if it isn't the
4649 ordinary hero symbol (steed, invisible w/o see invisible, ?) */
4650 if (!u_at(x, y) || Upolyd || glyph_at(x, y) != hero_glyph)
4651 mcmd_addmenu(win, MCMD_LOOK_AT, "Look at map symbol"), ++K;
4652 }
4653 return K;
4654}
4655
4656/* queue up command(s) to perform #therecmdmenu action */
4657staticfn void

Callers 1

there_cmd_menuFunction · 0.85

Calls 2

glyph_atFunction · 0.85
mcmd_addmenuFunction · 0.85

Tested by

no test coverage detected