comparison 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
comparison
equal deleted inserted replaced
144:708bb2dea17c 145:aac28331e71d
78 int chant_time = 0; 78 int chant_time = 0;
79 int pray_time = 0; 79 int pray_time = 0;
80 int spell_power = 0; 80 int spell_power = 0;
81 int turns = 0; /* Number of turns player has taken */ 81 int turns = 0; /* Number of turns player has taken */
82 int quest_item = 0; /* Item player is looking for */ 82 int quest_item = 0; /* Item player is looking for */
83 int scorefd = -1; /* File descriptor for score file */
83 int cols = 0; /* number of columns in terminal */ 84 int cols = 0; /* number of columns in terminal */
84 int lines = 0; /* number of lines on the terminal */ 85 int lines = 0; /* number of lines on the terminal */
85 char nfloors = -1; /* Number of floors in this dungeon */ 86 char nfloors = -1; /* Number of floors in this dungeon */
86 char curpurch[LINELEN]; /* name of item ready to buy */ 87 char curpurch[LINELEN]; /* name of item ready to buy */
87 char PLAYER = VPLAYER; /* what the player looks like */ 88 char PLAYER = VPLAYER; /* what the player looks like */
131 bool firstmove = FALSE; 132 bool firstmove = FALSE;
132 bool askme = FALSE; 133 bool askme = FALSE;
133 bool in_shell = FALSE; 134 bool in_shell = FALSE;
134 bool daytime = TRUE; 135 bool daytime = TRUE;
135 bool use_savedir = FALSE; 136 bool use_savedir = FALSE;
137 FILE *logfile = NULL;
136 LEVTYPE levtype; /* type of level i'm on */ 138 LEVTYPE levtype; /* type of level i'm on */
137 139
138 char *nothing = "Nothing seems to happen."; 140 char *nothing = "Nothing seems to happen.";
139 char *spacemsg = "--Press space to continue--"; 141 char *spacemsg = "--Press space to continue--";
140 char *morestr = "-- More --"; 142 char *morestr = "-- More --";