use getpos()'s 'autodescribe' to view whatever is currently shown on map */
| 103 | |
| 104 | /* use getpos()'s 'autodescribe' to view whatever is currently shown on map */ |
| 105 | staticfn void |
| 106 | browse_map(unsigned ter_typ, const char *ter_explain) |
| 107 | { |
| 108 | coord dummy_pos; /* don't care whether player actually picks a spot */ |
| 109 | boolean save_autodescribe; |
| 110 | |
| 111 | dummy_pos.x = u.ux, dummy_pos.y = u.uy; /* starting spot for getpos() */ |
| 112 | save_autodescribe = iflags.autodescribe; |
| 113 | iflags.autodescribe = TRUE; |
| 114 | iflags.terrainmode = ter_typ; |
| 115 | (void) getpos(&dummy_pos, FALSE, ter_explain); |
| 116 | iflags.terrainmode = 0; |
| 117 | iflags.autodescribe = save_autodescribe; |
| 118 | } |
| 119 | |
| 120 | /* extracted from monster_detection() so can be shared by do_vicinity_map() */ |
| 121 | staticfn void |
no test coverage detected