NetHack 1.4f/dog.c