globals from files.c moved to instance globals.
This commit is contained in:
@@ -176,7 +176,7 @@ char *argv[];
|
||||
*/
|
||||
attempt_restore:
|
||||
if ((fd = restore_saved_game()) >= 0) {
|
||||
const char *fq_save = fqname(SAVEF, SAVEPREFIX, 1);
|
||||
const char *fq_save = fqname(g.SAVEF, SAVEPREFIX, 1);
|
||||
|
||||
(void) chmod(fq_save, 0); /* disallow parallel restores */
|
||||
(void) signal(SIGINT, (SIG_RET_TYPE) done1);
|
||||
|
||||
@@ -564,7 +564,7 @@ char ***outarray;
|
||||
char *charname, wildcard[255 + 1], filename[255 + 1];
|
||||
genericptr_t context = 0;
|
||||
|
||||
Strcpy(wildcard, savetemplate); /* plname_from_file overwrites SAVEF */
|
||||
Strcpy(wildcard, savetemplate); /* plname_from_file overwrites g.SAVEF */
|
||||
in.mbz = 0; /* class and type; leave them unspecified */
|
||||
in.len = (unsigned short) strlen(wildcard);
|
||||
in.adr = wildcard;
|
||||
|
||||
Reference in New Issue
Block a user