]> granicus.if.org Git - nethack/commit
getpos moving to 'cmap' characters
authorPatR <rankin@nethack.org>
Tue, 31 May 2016 00:56:47 +0000 (17:56 -0700)
committerPatR <rankin@nethack.org>
Tue, 31 May 2016 00:56:47 +0000 (17:56 -0700)
commit7404597ac547ba42b48916745ec6c8330c4ca33a
treee17b7ce4ecdaaa05425d7a4382c2d548fe873303
parent5addbf88ddd3aa7f805f9f888c37fd868c907827
getpos moving to 'cmap' characters

While testing something I noticed that moving the cursor to visible '^'
by typing '^' while getpos was asking me to pick a location, it didn't
always cycle through all visible traps.  The most straightforward
culprit was after trap detection (via confused gold detection, not ^F)
had found a trap door or level teleporter in a closet that itself was
a secret corridor spot.  But it turned out to be any location that
hadn't been seen yet.  This is a substantial overhaul of the relevant
code and so far works for all the cases I've tried, but there are
bound to be cases I haven't tried yet and those may or may not work
correctly.

There's also a bunch of formatting cleanup, and some simplification of
the m/M/o/O/d/D/x/X handling.
doc/fixes36.1
src/do_name.c