comparison arogue7/command.c @ 130:1a64fd0bfea6

arogue7: record completed games in a logfile.
author John "Elwin" Edwards
date Tue, 12 May 2015 09:55:05 -0400
parents b786053d2f37
children 0c775afe0072
comparison
equal deleted inserted replaced
129:9c4e50b5825c 130:1a64fd0bfea6
600 prbuf[0] = '\0'; 600 prbuf[0] = '\0';
601 if ((get_str(prbuf, msgw) == NORM) && strcmp(prbuf, "yes") == 0) { 601 if ((get_str(prbuf, msgw) == NORM) && strcmp(prbuf, "yes") == 0) {
602 clear(); 602 clear();
603 move(lines-1, 0); 603 move(lines-1, 0);
604 draw(stdscr); 604 draw(stdscr);
605 writelog(pstats.s_exp + (long) purse, CHICKEN, 0);
605 score(pstats.s_exp + (long) purse, CHICKEN, 0); 606 score(pstats.s_exp + (long) purse, CHICKEN, 0);
606 #ifdef PC7300 607 #ifdef PC7300
607 endhardwin(); 608 endhardwin();
608 #endif 609 #endif
609 exit(0); 610 exit(0);