changeset 43:24e6beb9e7aa

Make sure the score list appears in all situations.
author elwin
date Tue, 07 Dec 2010 16:46:07 +0000
parents 30fb47f21d35
children 7612f48a38ad
files rogue3/command.c rogue3/rip.c rogue4/main.c rogue4/rip.c rogue5/main.c rogue5/rip.c srogue/command.c srogue/rip.c
diffstat 8 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rogue3/command.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue3/command.c	Tue Dec 07 16:46:07 2010 +0000
@@ -340,6 +340,9 @@
 	endwin();
         writelog(purse, 1, 0);
 	score(purse, 1, 0);
+	printf("[Press return to exit]\n");
+	fflush(NULL);
+	getchar();
 	exit(0);
     }
     else
--- a/rogue3/rip.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue3/rip.c	Tue Dec 07 16:46:07 2010 +0000
@@ -470,6 +470,9 @@
     refresh();
     writelog(purse, 2, 0);
     score(purse, 2, 0);
+    printf("[Press return to exit]\n");
+    fflush(NULL);
+    getchar();
     exit(0);
 }
 
--- a/rogue4/main.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue4/main.c	Tue Dec 07 16:46:07 2010 +0000
@@ -353,6 +353,9 @@
 	refresh();
 	writelog(purse, 1, 0);
 	score(purse, 1);
+	printf("[Press return to exit]\n");
+	fflush(NULL);
+	getchar();
 	exit(0);
     }
     else
--- a/rogue4/rip.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue4/rip.c	Tue Dec 07 16:46:07 2010 +0000
@@ -450,6 +450,9 @@
     refresh();
     writelog(purse, 2, 0);
     score(purse, 2, 0);
+    printf("[Press return to exit]\n");
+    fflush(NULL);
+    getchar();
     exit(0);
 }
 
--- a/rogue5/main.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue5/main.c	Tue Dec 07 16:46:07 2010 +0000
@@ -331,6 +331,9 @@
 	refresh();
         writelog(purse, 1, 0);
 	score(purse, 1, 0);
+	printf("[Press return to exit]\n");
+	fflush(NULL);
+	getchar();
 	my_exit(0);
     }
     else
--- a/rogue5/rip.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/rogue5/rip.c	Tue Dec 07 16:46:07 2010 +0000
@@ -445,6 +445,9 @@
     refresh();
     writelog(purse, 2, ' ');
     score(purse, 2, ' ');
+    printf("[Press return to exit]\n");
+    fflush(NULL);
+    getchar();
     my_exit(0);
 }
 
--- a/srogue/command.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/srogue/command.c	Tue Dec 07 16:46:07 2010 +0000
@@ -374,6 +374,9 @@
 		refresh();
 		writelog(purse, CHICKEN, 0);
 		score(purse, CHICKEN, 0);
+		printf("[Press return to exit]\n");
+		fflush(NULL);
+		getchar();
 		byebye(0);
 	}
 	else if (ch == 's') {
--- a/srogue/rip.c	Mon Dec 06 19:43:32 2010 +0000
+++ b/srogue/rip.c	Tue Dec 07 16:46:07 2010 +0000
@@ -86,6 +86,9 @@
 	refresh();
 	writelog(purse, KILLED, monst);
 	score(purse, KILLED, monst);
+	printf("[Press return to exit]\n");
+	fflush(NULL);
+	getchar();
 	byebye(0);
 }
 
@@ -340,6 +343,9 @@
 	showpack(TRUE, NULL);
 	writelog(purse, WINNER, 0);
 	score(purse, WINNER, 0);
+	printf("[Press return to exit]\n");
+	fflush(NULL);
+	getchar();
 	byebye(0);
 }