rogue4: add logging all games
This commit is contained in:
parent
f9c589b480
commit
4bc7038945
6 changed files with 75 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue