NetHack 3.3.0/dogmove.c