NetHack 3.4.0/dogmove.c