Mercurial > hg > early-roguelike
comparison rogue5/extern.c @ 34:655c317b6237
rogue5: add savedir, logfile, bugfixes
author | elwin |
---|---|
date | Mon, 24 May 2010 20:16:15 +0000 |
parents | f502bf60e6e4 |
children | e7aab31362af |
comparison
equal
deleted
inserted
replaced
33:f502bf60e6e4 | 34:655c317b6237 |
---|---|
40 int see_floor = TRUE; /* Show the lamp illuminated floor */ | 40 int see_floor = TRUE; /* Show the lamp illuminated floor */ |
41 int stat_msg = FALSE; /* Should status() print as a msg() */ | 41 int stat_msg = FALSE; /* Should status() print as a msg() */ |
42 int terse = FALSE; /* True if we should be short */ | 42 int terse = FALSE; /* True if we should be short */ |
43 int to_death = FALSE; /* Fighting is to the death! */ | 43 int to_death = FALSE; /* Fighting is to the death! */ |
44 int tombstone = TRUE; /* Print out tombstone at end */ | 44 int tombstone = TRUE; /* Print out tombstone at end */ |
45 int use_savedir = FALSE; /* True if using system savefile dir */ | |
45 #ifdef MASTER | 46 #ifdef MASTER |
46 int wizard = FALSE; /* True if allows wizard commands */ | 47 int wizard = FALSE; /* True if allows wizard commands */ |
47 #endif | 48 #endif |
48 int pack_used[26] = { /* Is the character used in the pack? */ | 49 int pack_used[26] = { /* Is the character used in the pack? */ |
49 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, | 50 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, |
109 3, /* PLATE_MAIL */ | 110 3, /* PLATE_MAIL */ |
110 }; | 111 }; |
111 | 112 |
112 int count = 0; /* Number of times to repeat command */ | 113 int count = 0; /* Number of times to repeat command */ |
113 FILE *scoreboard = NULL; /* File descriptor for score file */ | 114 FILE *scoreboard = NULL; /* File descriptor for score file */ |
115 FILE *logfi = NULL; /* The log file */ | |
114 int food_left; /* Amount of food in hero's stomach */ | 116 int food_left; /* Amount of food in hero's stomach */ |
115 int lastscore = -1; /* Score before this turn */ | 117 int lastscore = -1; /* Score before this turn */ |
116 int no_command = 0; /* Number of turns asleep */ | 118 int no_command = 0; /* Number of turns asleep */ |
117 int no_move = 0; /* Number of turns held in place */ | 119 int no_move = 0; /* Number of turns held in place */ |
118 int purse = 0; /* How much gold he has */ | 120 int purse = 0; /* How much gold he has */ |