arogue5: update the score list before prompting to exit.
This commit is contained in:
parent
8c27cf1402
commit
4d11069d9c
1 changed files with 13 additions and 11 deletions
|
|
@ -472,6 +472,13 @@ short monst;
|
|||
}
|
||||
}
|
||||
|
||||
fseek(outf, 0L, 0);
|
||||
/*
|
||||
* Update the list file
|
||||
*/
|
||||
scoreout(top_ten, outf);
|
||||
fclose(outf);
|
||||
|
||||
/*
|
||||
* SCOREIT -- rogue -s option. Never started curses if this option.
|
||||
* UPDATE -- network scoring update. Never started curses if this option.
|
||||
|
|
@ -557,19 +564,14 @@ short monst;
|
|||
else printf("\n");
|
||||
}
|
||||
}
|
||||
if ((flags != SCOREIT) && (flags != UPDATE)) {
|
||||
printf("\n[Press return to exit]");
|
||||
fflush(stdout);
|
||||
fgets(prbuf,80,stdin);
|
||||
}
|
||||
/* if (prflags == EDITSCORE) endwin(); */ /* End editing windowing */
|
||||
}
|
||||
fseek(outf, 0L, 0);
|
||||
/*
|
||||
* Update the list file
|
||||
*/
|
||||
scoreout(top_ten, outf);
|
||||
fclose(outf);
|
||||
|
||||
if ((flags != SCOREIT) && (flags != UPDATE)) {
|
||||
printf("\n[Press return to exit]");
|
||||
fflush(stdout);
|
||||
fgets(prbuf,80,stdin);
|
||||
}
|
||||
}
|
||||
|
||||
void writelog(unsigned long amount, int flags, short monst) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue