Mercurial > hg > early-roguelike
diff arogue7/rogue.c @ 145:aac28331e71d
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.
author | John "Elwin" Edwards |
---|---|
date | Wed, 20 May 2015 08:42:17 -0400 |
parents | c697782a9b37 |
children | c8fc38d903a3 |
line wrap: on
line diff
--- a/arogue7/rogue.c Mon May 18 10:53:22 2015 -0400 +++ b/arogue7/rogue.c Wed May 20 08:42:17 2015 -0400 @@ -80,6 +80,7 @@ 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 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.";