]> granicus.if.org Git - nethack/commit
mnearto/mnexto/enexto
authorPatR <rankin@nethack.org>
Thu, 30 May 2019 14:50:38 +0000 (07:50 -0700)
committerPatR <rankin@nethack.org>
Thu, 30 May 2019 14:50:38 +0000 (07:50 -0700)
commit791b87833b01f336707d90b4d780d1e87eecb344
tree27e29ba717668b07cf44a272ddf29f3f07bd6a88
parent1a35c155888c68636bf4af631125c6a4f898929c
mnearto/mnexto/enexto

This doesn't solve the <0,0> problem but it does prevent mnexto()
from using uninitialized coordinates if enexto() fails.  It also adds
several debugging messages.

enexto() was ignoring map row #0 (unlike column #0, row #0 contains
valid map locations).  Fixing that doesn't matter for Plane of Water
though since that row is stone there--that's probably a bug.  It was
also repeatedly re-testing the top+1 and bottom rows and left and
right columns after they had already failed to be acceptable.  It
still does some of that, but less.
include/hack.h
src/mkmaze.c
src/mon.c
src/teleport.c