getch();
}
-void pause_game(int i)
+void pause_game(bool announcement)
{
char *prompt;
char buf[BUFSIZ];
- if (i==1) {
+ if (announcement) {
if (game.skill > SKILL_FAIR)
prompt = _("[ANOUNCEMENT ARRIVING...]");
else
putchar('\n');
proutn(prompt);
fgets(buf, sizeof(buf), stdin);
- if (i != 0) {
+ if (announcement) {
int j;
for (j = 0; j < rows; j++)
putchar('\n');
while (i-- > 0) {
if (game.options & OPTION_CURSES) {
if (curwnd == message_window && linecount >= getmaxy(curwnd) - 3) {
- pause_game(0);
+ pause_game(false);
clrscr();
} else {
proutn("\n");
} else {
linecount++;
if (linecount >= rows)
- pause_game(0);
+ pause_game(false);
else
putchar('\n');
}