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

Function do_mapping

src/detect.c:1421–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1419}
1420
1421void
1422do_mapping(void)
1423{
1424 int zx, zy;
1425 boolean unconstrained;
1426
1427 unconstrained = unconstrain_map();
1428 for (zx = 1; zx < COLNO; zx++)
1429 for (zy = 0; zy < ROWNO; zy++)
1430 show_map_spot(zx, zy, Confusion);
1431
1432 if (!svl.level.flags.hero_memory || unconstrained) {
1433 flush_screen(1); /* flush temp screen */
1434 /* browse_map() instead of display_nhwindow(WIN_MAP, TRUE) */
1435 browse_map(TER_DETECT | TER_MAP | TER_TRP | TER_OBJ,
1436 "anything of interest");
1437 map_redisplay(); /* calls reconstrain_map() and docrt() */
1438 } else {
1439 /* we only get here when unconstrained is False, so reconstrain_map
1440 will be a no-op; call it anyway */
1441 reconstrain_map();
1442 }
1443 exercise(A_WIS, TRUE);
1444}
1445
1446/* clairvoyance */
1447void

Callers 3

throne_sit_effectFunction · 0.85
wiz_mapFunction · 0.85
seffect_magic_mappingFunction · 0.85

Calls 7

unconstrain_mapFunction · 0.85
show_map_spotFunction · 0.85
flush_screenFunction · 0.85
browse_mapFunction · 0.85
map_redisplayFunction · 0.85
reconstrain_mapFunction · 0.85
exerciseFunction · 0.85

Tested by

no test coverage detected