]> granicus.if.org Git - nethack/commit
fix 'b&c distance' sanity check warning
authorPatR <rankin@nethack.org>
Fri, 4 Oct 2019 22:16:51 +0000 (15:16 -0700)
committerPatR <rankin@nethack.org>
Fri, 4 Oct 2019 22:16:51 +0000 (15:16 -0700)
commit8fa38ec8fb2b9c26cc3b95c46ae7748f60f14540
tree0875e3dc7dfdee93617b484c641fda712eb061d4
parentd9a1bbb2030035463f740a277acfc9faa29e1eae
fix 'b&c distance' sanity check warning

when attempting to crawl out of water fails and hero is life-saved
or wizard-/explore-mode player declines to die.  If the hero is saved
by positioning him/her one step further away from ball and chain,
teleds() tries to drag them, but if 'emergency disrobe' left the hero
stressed or worse, dragging fails.  Ball and chain were being left
where they were, with chain no longer being adjacent to hero.

If drag_ball() fails, have teleds() teleport ball and chain to hero's
new spot, same as when that isn't within range of a one step drag.
doc/fixes36.3
src/teleport.c