diff 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
line wrap: on
line diff
--- a/xrogue/command.c	Sat May 02 07:31:14 2015 -0400
+++ b/xrogue/command.c	Tue May 05 11:24:02 2015 -0400
@@ -699,6 +699,7 @@
         clear();
         move(lines-1, 0);
         draw(stdscr);
+        writelog(pstats.s_exp + (long) purse, CHICKEN, 0);
         score(pstats.s_exp + (long) purse, CHICKEN, 0);
         exit_game(EXIT_ENDWIN);
     }