Skip to content

Commit

Permalink
fix github issue #483 - map display while engulfed
Browse files Browse the repository at this point in the history
Report raises two issues:
1) if you perform magic mapping while engulfed (or underwater) the
map got updated and player could view it with cursor+autodescribe,
but when done viewing it did not switch back to the limited engulfed
(or underwater) display.
2) when picking a teleport destination while engulfed/underwater you
have to pick the spot while seeing only the limited view of the map
that is shown while engulfed/underwater.

This fixes #1.  I'm inclined to classify #2 as traditional behavior
and am not going to try to figure out a fix for it.

Fixes #483
  • Loading branch information
PatR committed Apr 1, 2021
1 parent 39bd259 commit dcdce2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/fixes37.0
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ attempt to make corpse or statue of a named player character would yield that
of a random monster instead when 'record' was empty; could result in
statues of non-stonable creatures in cockatrice nests
homemade tin of very low nutrition corpse gave more nutrition than the corpse
magic mapping performed while engulfed or underwater would display whole map
but then not switch back to the engulfed or underwater restricted view


Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
Expand Down
7 changes: 5 additions & 2 deletions src/detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,9 +1334,12 @@ do_mapping(void)
/* browse_map() instead of display_nhwindow(WIN_MAP, TRUE) */
browse_map(TER_DETECT | TER_MAP | TER_TRP | TER_OBJ,
"anything of interest");
docrt();
map_redisplay(); /* calls reconstrain_map() and docrt() */
} else {
/* we only get here when unconstrained is False, so reconstrain_map
will be a no-op; call it anyway */
reconstrain_map();
}
reconstrain_map();
exercise(A_WIS, TRUE);
}

Expand Down

0 comments on commit dcdce2a

Please sign in to comment.