fix B02001 - WIZKIT artifacts

Fix the reported bug of artifacts created via wizard mode WIZKIT
being "forgotten" and possibly duplicated during play.  Perform artifact
initialization before $WIZKIT processing; role info needed by the former
is already sufficiently set up by that point.
This commit is contained in:
nethack.rankin
2003-04-03 03:59:40 +00:00
parent ccb0973a23
commit c8c7a463ff
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)allmain.c 3.4 2002/01/04 */
/* SCCS Id: @(#)allmain.c 3.4 2003/04/02 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -495,10 +495,11 @@ newgame()
* and init_artifacts() */
init_dungeons(); /* must be before u_init() to avoid rndmonst()
* creating odd monsters for initial tins and
* eggs */
* creating odd monsters for any tins and eggs
* in hero's initial inventory */
init_artifacts(); /* before u_init() in case $WIZKIT specifies
* any aritfacts */
u_init();
init_artifacts();
#ifndef NO_SIGNAL
(void) signal(SIGINT, (SIG_RET_TYPE) done1);