Mercurial > hg > early-roguelike
diff arogue7/rogue.c @ 279:d3968e9cb98d
Use C stdio functions for score files and save files.
Switching from Unix file descriptor operations to C standard FILE*
functions will reduce portability problems.
author | John "Elwin" Edwards |
---|---|
date | Fri, 15 Sep 2017 19:57:54 -0400 |
parents | ca876944b196 |
children | 0250220d8cdd |
line wrap: on
line diff
--- a/arogue7/rogue.c Sun Sep 10 17:30:13 2017 -0400 +++ b/arogue7/rogue.c Fri Sep 15 19:57:54 2017 -0400 @@ -80,7 +80,6 @@ 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 */ @@ -134,6 +133,7 @@ bool in_shell = FALSE; bool daytime = TRUE; bool use_savedir = FALSE; +FILE *scoreboard = NULL; /* Score file */ FILE *logfile = NULL; LEVTYPE levtype; /* type of level i'm on */