rogue4: make sure score list appears when exiting
 | author | edwarj4 | 
 | date | Tue, 24 Nov 2009 13:02:34 +0000 | 
 | parents | 107a467612fb | 
 | children | 00e90f1bffd6 | 
 | files | rogue4/command.c rogue4/rip.c | 
  | diffstat | 2 files changed, 5 insertions(+), 0 deletions(-)
    [+] | 
 line diff
--- a/rogue4/command.c	Tue Nov 24 12:53:15 2009 +0000
+++ b/rogue4/command.c	Tue Nov 24 13:02:34 2009 +0000
@@ -209,6 +209,7 @@
 			clrtoeol();
 			refresh();
 			endwin();
+                        printf("See you soon, %s!\n", whoami);
 			exit(0);
 		    }
 		when '.' : ;			/* Rest command */
--- a/rogue4/rip.c	Tue Nov 24 12:53:15 2009 +0000
+++ b/rogue4/rip.c	Tue Nov 24 13:02:34 2009 +0000
@@ -272,6 +272,10 @@
     move(LINES-1, 0);
     refresh();
     score(purse, 0, monst);
+    /* Make sure the output gets through */
+    printf("[Press return to exit]\n");
+    fflush(NULL);
+    getchar();
     exit(0);
 }