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:
John "Elwin" Edwards 2015-05-20 08:42:17 -04:00
parent ea4244de91
commit e3620a3781
14 changed files with 105 additions and 14 deletions

View file

@ -80,6 +80,7 @@ int pray_time = 0;
int spell_power = 0;
int turns = 0; /* Number of turns player has taken */
int quest_item = 0; /* Item player is looking for */
int scorefd = -1; /* File descriptor for score file */
int cols = 0; /* number of columns in terminal */
int lines = 0; /* number of lines on the terminal */
char nfloors = -1; /* Number of floors in this dungeon */
@ -133,6 +134,7 @@ bool askme = FALSE;
bool in_shell = FALSE;
bool daytime = TRUE;
bool use_savedir = FALSE;
FILE *logfile = NULL;
LEVTYPE levtype; /* type of level i'm on */
char *nothing = "Nothing seems to happen.";