]> granicus.if.org Git - nethack/commitdiff
remove a troublesome line of code
authornhmall <mjnh@persona.ca>
Sat, 21 Mar 2015 20:01:03 +0000 (16:01 -0400)
committernhmall <mjnh@persona.ca>
Sat, 21 Mar 2015 20:01:03 +0000 (16:01 -0400)
Whenever SYSCF was enabled on Windows, the option
processing would go bonkers with illegal options
at startup. I noticed it months ago, and Derek
had it happen the other evening.

It turns out, the hard-coded 'defaults.nh' setting
was being overwritten with the name sysconf on
the first SET_IN_SYS pass, so all subsequent passes
were re-opening the SYSC_FILE instead of the
user config file.

I opted to take it out as I couldn't ascertain
why it was there in the first place.

src/files.c

index e85a85ae410d2d8aa3e0b2476c727eea3c4583e9..eeebd6e086f735a52ce305877102c6f1e6f48a95 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.5 files.c $NHDT-Date: 1426966692 2015/03/21 19:38:12 $  $NHDT-Branch: master $:$NHDT-Revision: 1.135 $ */
+/* NetHack 3.5 files.c $NHDT-Date: 1426968058 2015/03/21 20:00:58 $  $NHDT-Branch: master $:$NHDT-Revision: 1.136 $ */
 /* NetHack 3.5 files.c $Date: 2012/03/10 02:49:08 $  $Revision: 1.124 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -1858,7 +1858,6 @@ int src;
                } else
 #endif
                if ((fp = fopenp(filename, "r")) != (FILE *)0) {
-                   configfile = filename;
                    return(fp);
 #if defined(UNIX) || defined(VMS)
                } else {