]> granicus.if.org Git - nethack/commit
EDIT_GETLIN vs monpolycontrol
authorPatR <rankin@nethack.org>
Sat, 15 Jun 2019 11:13:34 +0000 (04:13 -0700)
committerPatR <rankin@nethack.org>
Sat, 15 Jun 2019 11:13:34 +0000 (04:13 -0700)
commitf0633e65414a3aff9a7022c4466e74cda08e9a7c
tree861f3e5df6d4c1a7b74d2d320f81dca2e66a64ae
parenta336caf4619f0c5ac8712c2aaecab36b9760597c
EDIT_GETLIN vs monpolycontrol

For wizard mode 'monpolycontrol', the getlin() answer buffer for the
"Change <monster> @ <x,y> into what kind of monster?" prompt is also
used to format the coordinate portion of that prompt, so when
EDIT_GETLIN is enabled getlin() was inadvertently given "<x,y>" to use
as default response.  Clear it after the prompt is formatted instead
of via an initializer.  Also, shorten the prompt on the first try:
"Change <monster> @ <x,y> into what?", expanding to the old prompt if
retry is needed.

This also allows specifying 'chameleon' when <monster> is a chameleon,
'doppelganger' when it's a doppelganger, and 'sandestin' when it's one
of those (but not 'doppelganger' when it's a chameleon or sandestin,
and so forth), instead of blanket refusal to accept any non-vampire
shapechanger as the choice.
doc/fixes36.3
src/mon.c