| 4636 | } |
| 4637 | |
| 4638 | staticfn int |
| 4639 | there_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 */ |
| 4657 | staticfn void |
no test coverage detected