diff rogue3/rip.c @ 7:d388234c4ce9

Don't autosave on segfault or after death
author edwarj4
date Fri, 16 Oct 2009 14:40:16 +0000
parents 527e2150eaf0
children 78df7025783b
line wrap: on
line diff
--- a/rogue3/rip.c	Fri Oct 16 14:30:06 2009 +0000
+++ b/rogue3/rip.c	Fri Oct 16 14:40:16 2009 +0000
@@ -55,6 +55,11 @@
     time_t date;
     char buf[80];
 
+    /* Don't autosave dead games.  It would be a good idea to autosave a 
+       game that is between death and scoreboard write, but the restore 
+       code can't handle that case yet. */
+    md_onsignal_default();
+
     time(&date);
     lt = localtime(&date);
     clear();