Mercurial > hg > early-roguelike
diff arogue5/rogue.h @ 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 | a5433ba4cabf |
children | 68a63ddfbe14 |
line wrap: on
line diff
--- a/arogue5/rogue.h Mon May 18 10:53:22 2015 -0400 +++ b/arogue5/rogue.h Wed May 20 08:42:17 2015 -0400 @@ -1050,6 +1050,7 @@ extern int spell_power; /* Spell power left at this level */ extern int turns; /* Number of turns player has taken */ extern int quest_item; /* Item hero is looking for */ +extern int scorefd; /* File descriptor for the scorefile */ extern int cur_relic[]; /* Current relics */ extern char take; /* Thing the rogue is taking */ extern char prbuf[]; /* Buffer for sprintfs */ @@ -1121,3 +1122,4 @@ extern char *metal[NMETAL]; extern char *wood[NWOOD]; extern coord ch_ret; +extern FILE *logfile;