more not PR #1102 - reveal_terrain() args

From a comment w/ diff in the pull request by entrez, combine the
show-full-map flag (available in wizard mode and explore mode) with
the bitmask for map-only, map-and-traps, map-and-traps-and-objects
flags for #terrain mode (and getpos() help) instead of passing that
as a separate argument.  No change in behavior unless I messed up.
This commit is contained in:
PatR
2023-10-13 18:17:08 -07:00
parent 80b153638b
commit 9e65cd7d80
4 changed files with 45 additions and 37 deletions

View File

@@ -2241,16 +2241,16 @@ doterrain(void)
switch (which) {
case 1: /* known map */
reveal_terrain(0, TER_MAP);
reveal_terrain(TER_MAP);
break;
case 2: /* known map with known traps */
reveal_terrain(0, TER_MAP | TER_TRP);
reveal_terrain(TER_MAP | TER_TRP);
break;
case 3: /* known map with known traps and objects */
reveal_terrain(0, TER_MAP | TER_TRP | TER_OBJ);
reveal_terrain(TER_MAP | TER_TRP | TER_OBJ);
break;
case 4: /* full map */
reveal_terrain(1, TER_MAP);
reveal_terrain(TER_MAP | TER_FULL);
break;
case 5: /* map internals */
wiz_map_levltyp();