diff arogue5/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 ee250e3646fd
children d3968e9cb98d
line wrap: on
line diff
--- a/arogue5/rogue.c	Mon May 18 10:53:22 2015 -0400
+++ b/arogue5/rogue.c	Wed May 20 08:42:17 2015 -0400
@@ -64,6 +64,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 the scorefile */
 char nfloors = -1;			/* Number of floors in this dungeon */
 char curpurch[LINELEN*2];		/* name of item ready to buy */
 char PLAYER = VPLAYER;			/* what the player looks like */
@@ -123,6 +124,7 @@
 char *morestr  =	"-- More --";
 char *retstr   =	"[Press return to continue]";
 
+FILE *logfile = NULL;
 
 /*
  * NOTE: the ordering of the points in this array is critical. They MUST