From 67b34944e3c415ad9804bb91c70a8e2322fe91ed Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Mon, 18 Sep 2006 23:18:54 +0000 Subject: [PATCH] dos port chdir fix I don't know if this was introduced post 3.4.3 or not, but the DOS port was doing a chdir at the start, but not doing one at the finish of the game, so you ended up in the same directory as the NetHack.exe executable post-game. It was doing the chdir even if NOCWD_ASSUMPTIONS was defined. --- sys/share/pcmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/share/pcmain.c b/sys/share/pcmain.c index 12804c45d..c5715f1c3 100644 --- a/sys/share/pcmain.c +++ b/sys/share/pcmain.c @@ -167,7 +167,7 @@ char *argv[]; fqn_prefix[prefcnt] = fqn_prefix[0]; } #endif -#ifdef CHDIR +#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS) chdirx (dir, 1); #endif }