Mercurial > hg > early-roguelike
comparison arogue5/save.c @ 85:d852b8f088c5
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.
author | John "Elwin" Edwards |
---|---|
date | Fri, 09 Aug 2013 09:34:07 -0700 |
parents | ad2cb9a07aaa |
children | 7795b0938921 |
comparison
equal
deleted
inserted
replaced
84:a0d4caead33b | 85:d852b8f088c5 |
---|---|
243 return FALSE; | 243 return FALSE; |
244 } | 244 } |
245 } | 245 } |
246 } | 246 } |
247 | 247 |
248 if (pstats.s_hpt <= 0) { | |
249 endwin(); | |
250 printf("This character is already dead.\n"); | |
251 return FALSE; | |
252 } | |
253 | |
248 environ = envp; | 254 environ = envp; |
249 strcpy(file_name, file); | 255 strcpy(file_name, file); |
250 setup(); | 256 setup(); |
251 clearok(curscr, TRUE); | 257 clearok(curscr, TRUE); |
252 touchwin(cw); | 258 touchwin(cw); |