From: nethack.rankin Date: Sun, 24 Feb 2002 06:51:36 +0000 (+0000) Subject: wizkit enhancement X-Git-Tag: MOVE2GIT~3132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f682205cd0d70aee16be8e8f3e9bc789904cfd;p=nethack wizkit enhancement Allow a WIZKIT file name to be specified via the environment. If none is specified there, get it from the run-time config file. --- diff --git a/src/files.c b/src/files.c index 98e1de24e..538cad1f9 100644 --- a/src/files.c +++ b/src/files.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)files.c 3.4 2000/04/27 */ +/* SCCS Id: @(#)files.c 3.4 2002/02/23 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1604,6 +1604,8 @@ fopen_wizkit_file() char *envp; #endif + envp = nh_getenv("WIZKIT"); + if (envp && *envp) Strcpy(wizkit, envp); if (!wizkit[0]) return (FILE *)0; #ifdef UNIX