NetHack 2.3e/dogmove.c