NetHack 3.1.0/restore.c