comparison xrogue/command.c @ 138:dd137c35c3b1

xrogue: record the result of each game in a logfile.
author John "Elwin" Edwards
date Tue, 05 May 2015 11:24:02 -0400
parents ce0cf824c192
children 0d151573bdb0
comparison
equal deleted inserted replaced
137:443c8bd3e290 138:dd137c35c3b1
697 prbuf[0] = '\0'; 697 prbuf[0] = '\0';
698 if ((get_str(prbuf, msgw) == NORM) && strcmp(prbuf, "yes") == 0) { 698 if ((get_str(prbuf, msgw) == NORM) && strcmp(prbuf, "yes") == 0) {
699 clear(); 699 clear();
700 move(lines-1, 0); 700 move(lines-1, 0);
701 draw(stdscr); 701 draw(stdscr);
702 writelog(pstats.s_exp + (long) purse, CHICKEN, 0);
702 score(pstats.s_exp + (long) purse, CHICKEN, 0); 703 score(pstats.s_exp + (long) purse, CHICKEN, 0);
703 exit_game(EXIT_ENDWIN); 704 exit_game(EXIT_ENDWIN);
704 } 705 }
705 else { 706 else {
706 signal(SIGINT, quit); 707 signal(SIGINT, quit);