NetHack 1.3d/dogmove.c