]> granicus.if.org Git - nethack/commitdiff
SC343-9 followup (trunk only)
authornethack.rankin <nethack.rankin>
Tue, 11 Oct 2005 04:30:24 +0000 (04:30 +0000)
committernethack.rankin <nethack.rankin>
Tue, 11 Oct 2005 04:30:24 +0000 (04:30 +0000)
     monst->cham usage bit.  CHAM_ORDINARY probably ought to be discarded
and replaced by NON_PM; then mons[0] wouldn't be ineligible to become a
shapechanger.  (Not that we want giant ants to mutate on the fly, but in
case someone ever inserts something interesting in front of them.)

src/read.c

index f30957dd2f92cb0e50e1e8f95ad65b4683949752..cc6069ea7ca9b0dff7d834d80c7864fbf60b2132 100644 (file)
@@ -2014,7 +2014,7 @@ create_particular()
                }
                if (mtmp) {
                    madeany = TRUE;
-                   if (mtmp->cham && firstchoice != NON_PM)
+                   if (mtmp->cham != CHAM_ORDINARY && firstchoice != NON_PM)
                        (void)newcham(mtmp, &mons[firstchoice], FALSE, FALSE);
                }
            }