Refuse to restore if the character is dead.

This prevents recovering from death by killing the game between death
and exit, producing an automatic save.
This commit is contained in:
John "Elwin" Edwards 2013-08-09 09:34:07 -07:00
parent 5a47554e45
commit 2d117230ed
4 changed files with 28 additions and 0 deletions

View file

@ -342,6 +342,12 @@ char *file, **envp;
}
if (him->s_hpt <= 0) {
endwin();
printf("This character is already dead.\n");
return FALSE;
}
environ = envp;
strcpy(file_name, file);