From: nethack.allison Date: Mon, 18 Sep 2006 23:18:54 +0000 (+0000) Subject: dos port chdir fix X-Git-Tag: MOVE2GIT~908 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67b34944e3c415ad9804bb91c70a8e2322fe91ed;p=nethack 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. --- 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 }