rogue4: add logging all games

This commit is contained in:
John "Elwin" Edwards 2009-11-26 03:02:13 +00:00
parent f9c589b480
commit 4bc7038945
6 changed files with 75 additions and 2 deletions

View file

@ -108,6 +108,7 @@ char **envp;
/*
* check for print-score option
*/
open_log(); /* do first, open_score might drop needed permissions */
open_score();
if (argc == 2 && strcmp(argv[1], "-s") == 0)
{
@ -349,6 +350,7 @@ quit(int a)
mvprintw(LINES - 2, 0, "You quit with %d gold pieces", purse);
move(LINES - 1, 0);
refresh();
writelog(purse, 1, 0);
score(purse, 1);
exit(0);
}