comparison 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
comparison
equal deleted inserted replaced
6:9a2c0c60c386 7:d388234c4ce9
52 { 52 {
53 char **dp = rip, *killer; 53 char **dp = rip, *killer;
54 struct tm *lt; 54 struct tm *lt;
55 time_t date; 55 time_t date;
56 char buf[80]; 56 char buf[80];
57
58 /* Don't autosave dead games. It would be a good idea to autosave a
59 game that is between death and scoreboard write, but the restore
60 code can't handle that case yet. */
61 md_onsignal_default();
57 62
58 time(&date); 63 time(&date);
59 lt = localtime(&date); 64 lt = localtime(&date);
60 clear(); 65 clear();
61 move(8, 0); 66 move(8, 0);