Make sure the score list appears in all situations.

This commit is contained in:
John "Elwin" Edwards 2010-12-07 16:46:07 +00:00
parent 02c8fd2586
commit 1d8ea533bd
8 changed files with 27 additions and 0 deletions

View file

@ -340,6 +340,9 @@ quit(int p)
endwin();
writelog(purse, 1, 0);
score(purse, 1, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
exit(0);
}
else

View file

@ -470,6 +470,9 @@ total_winner()
refresh();
writelog(purse, 2, 0);
score(purse, 2, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
exit(0);
}

View file

@ -353,6 +353,9 @@ quit(int a)
refresh();
writelog(purse, 1, 0);
score(purse, 1);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
exit(0);
}
else

View file

@ -450,6 +450,9 @@ total_winner()
refresh();
writelog(purse, 2, 0);
score(purse, 2, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
exit(0);
}

View file

@ -331,6 +331,9 @@ quit(int sig)
refresh();
writelog(purse, 1, 0);
score(purse, 1, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
my_exit(0);
}
else

View file

@ -445,6 +445,9 @@ total_winner(void)
refresh();
writelog(purse, 2, ' ');
score(purse, 2, ' ');
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
my_exit(0);
}

View file

@ -374,6 +374,9 @@ quit(int a)
refresh();
writelog(purse, CHICKEN, 0);
score(purse, CHICKEN, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
byebye(0);
}
else if (ch == 's') {

View file

@ -86,6 +86,9 @@ char monst;
refresh();
writelog(purse, KILLED, monst);
score(purse, KILLED, monst);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
byebye(0);
}
@ -340,6 +343,9 @@ addstr("a great profit and are admitted to the fighters guild.\n");
showpack(TRUE, NULL);
writelog(purse, WINNER, 0);
score(purse, WINNER, 0);
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
byebye(0);
}