Mercurial > hg > early-roguelike
comparison srogue/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 | f11eeafc6568 |
| children | f0073eb75a6a |
comparison
equal
deleted
inserted
replaced
| 84:a0d4caead33b | 85:d852b8f088c5 |
|---|---|
| 340 } | 340 } |
| 341 #endif | 341 #endif |
| 342 | 342 |
| 343 } | 343 } |
| 344 | 344 |
| 345 if (him->s_hpt <= 0) { | |
| 346 endwin(); | |
| 347 printf("This character is already dead.\n"); | |
| 348 return FALSE; | |
| 349 } | |
| 350 | |
| 345 environ = envp; | 351 environ = envp; |
| 346 | 352 |
| 347 strcpy(file_name, file); | 353 strcpy(file_name, file); |
| 348 setup(); | 354 setup(); |
| 349 restscr(cw); | 355 restscr(cw); |
