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:
parent
5a47554e45
commit
2d117230ed
4 changed files with 28 additions and 0 deletions
|
|
@ -245,6 +245,12 @@ char **envp;
|
|||
}
|
||||
}
|
||||
|
||||
if (pstats.s_hpt <= 0) {
|
||||
endwin();
|
||||
printf("This character is already dead.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
environ = envp;
|
||||
strcpy(file_name, file);
|
||||
setup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue