Don't chdir with NOCWD_ASSUMPTIONS

This commit is contained in:
nethack.allison
2002-08-21 03:26:25 +00:00
parent a25766c471
commit 591b832a84
3 changed files with 21 additions and 3 deletions
+2 -2
View File
@@ -221,7 +221,7 @@ char *argv[];
*/
if (!strncmp(argv[1], "-s", 2)) {
#if !defined(MSWIN_GRAPHICS)
# ifdef CHDIR
# if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
chdirx(hackdir,0);
# endif
prscore(argc, argv);
@@ -252,7 +252,7 @@ char *argv[];
/* chdir shouldn't be called before this point to keep the
* code parallel to other ports.
*/
#ifdef CHDIR
#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
chdirx(hackdir,1);
#endif