]> granicus.if.org Git - nethack/commitdiff
Only count successful statue creations against the monster limit.
authornethack.allison <nethack.allison>
Tue, 3 Jan 2006 13:20:13 +0000 (13:20 +0000)
committernethack.allison <nethack.allison>
Tue, 3 Jan 2006 13:20:13 +0000 (13:20 +0000)
doc/fixes34.4
src/sp_lev.c

index d54af647a7a6237472658ed7776f7fd416832b27..16f13a600b080ca80dc1cd5d02b9d005dbb3994f 100644 (file)
@@ -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
index cacf84adaa18313be8749b4ab10cd50f60f4a41e..98e8a476d8ff8f160b08b0c13be66e5998e6e11e 100644 (file)
@@ -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;