| 1419 | } |
| 1420 | |
| 1421 | void |
| 1422 | do_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 */ |
| 1447 | void |
no test coverage detected