Advanced Rogue family: fix the "score" option.
Changing the score file (when permitted) now works again, closing the old score file and opening the new one.
This commit is contained in:
parent
ea4244de91
commit
e3620a3781
14 changed files with 105 additions and 14 deletions
|
|
@ -677,6 +677,17 @@ md_flushinp()
|
|||
#endif
|
||||
}
|
||||
|
||||
extern int scorefd;
|
||||
extern char score_file[];
|
||||
|
||||
void
|
||||
md_reopen_score(void)
|
||||
{
|
||||
if (scorefd > 0)
|
||||
close(scorefd);
|
||||
scorefd = open(score_file, O_RDWR | O_CREAT, 0666);
|
||||
}
|
||||
|
||||
/*
|
||||
Cursor/Keypad Support
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue