From: nethack.allison Date: Tue, 3 Jan 2006 13:20:13 +0000 (+0000) Subject: Only count successful statue creations against the monster limit. X-Git-Tag: MOVE2GIT~1171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa77c621d617ec9321e4b540fc10c15470da6157;p=nethack Only count successful statue creations against the monster limit. --- diff --git a/doc/fixes34.4 b/doc/fixes34.4 index d54af647a..16f13a600 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -177,6 +177,7 @@ avoid "You summoned it!" for unseen monster produced by same-race offering recognize "mindflayer" as an alternative spelling for "mind flayer" treat mattock as blunt object when forcing locks restore capability to force locks with wielded statue +only count successful statue creations against the monster limit in sp_lev.c Platform- and/or Interface-Specific Fixes diff --git a/src/sp_lev.c b/src/sp_lev.c index cacf84ada..98e8a476d 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)sp_lev.c 3.5 2005/12/14 */ +/* SCCS Id: @(#)sp_lev.c 3.5 2006/01/02 */ /* Copyright (c) 1989 by Jean-Christophe Collet */ /* NetHack may be freely redistributed. See license for details. */ @@ -1036,8 +1036,11 @@ struct mkroom *croom; */ for (wastyp = otmp->corpsenm; ; wastyp = rndmonnum()) { /* makemon without rndmonst() might create a group */ - was = makemon(&mons[wastyp], 0, 0, NO_MM_FLAGS); - if (!resists_ston(was)) break; + was = makemon(&mons[wastyp], 0, 0, MM_NOCOUNTBIRTH); + if (!resists_ston(was)) { + (void) propagate(wastyp, TRUE, FALSE); + break; + } mongone(was); } otmp->corpsenm = wastyp;