]> granicus.if.org Git - nethack/commit
getpos() for objects
authorPatR <rankin@nethack.org>
Thu, 7 Jan 2016 00:47:30 +0000 (16:47 -0800)
committerPatR <rankin@nethack.org>
Thu, 7 Jan 2016 00:47:30 +0000 (16:47 -0800)
commit22685763d1a7f2a4d645d61e35028e56c36e8cfe
tree5810d967e55dd3ca4ec5c95a1766dd39f23fcca7
parentc8cd550a5ae1350bbf4576a9c422c57e2d2eefca
getpos() for objects

Extend the 'm' and 'M' functionality (move cursor to nearest monster
or farthest monster, respectively, then to next nearest/next farthest
when used successively) to 'o' and 'O' for objects.

'M' was picking the wrong monster (nearest) on first use; now fixed.
Hero is now included in the monster list, and will be the last one
reached if you cycle all the way through in either direction.  (Makes
it easier to tell that you have actually been all the way through.
Unfortunately, objects don't have any seen-'em-all indicator.  Perhaps
the hero's coordinates should go on that list too?)
doc/fixes36.1
src/do_name.c