similar problem with more obvious symptom, an "object lost" panic when
the unholy water was wielded; the fix for that wasn't general enough]
add MM_ASLEEP makemon() flag and honor it when creating group for fill_zoo
+add MM_NOGRP makemon() flag as a means of suppressing groups of monsters in
+ a couple places that warrant it when a specific monster type isn't
+ specified on the call to makemon()
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository
#define MM_EMIN 0x00800 /* add emin structure */
#define MM_EDOG 0x01000 /* add edog structure */
#define MM_ASLEEP 0x02000 /* monsters should be generated asleep */
+#define MM_NOGRP 0x04000 /* suppress creation of monster groups */
/* flags for make_corpse() and mkcorpstat() */
#define CORPSTAT_NONE 0x00
* smaller group.
*/
if (enexto(&mm, mm.x, mm.y, mtmp->data)) {
- mon = makemon(mtmp->data, mm.x, mm.y, NO_MM_FLAGS);
+ mon = makemon(mtmp->data, mm.x, mm.y, (mmflags | MM_NOGRP));
if (mon) {
- if (mmflags & MM_ASLEEP)
- mon->msleeping = 1;
mon->mpeaceful = FALSE;
mon->mavenge = 0;
set_malign(mon);
: eminp->renegade;
}
set_malign(mtmp); /* having finished peaceful changes */
- if (anymon) {
+ if (anymon && !(mmflags & MM_NOGRP)) {
if ((ptr->geno & G_SGROUP) && rn2(2)) {
m_initsgrp(mtmp, mtmp->mx, mtmp->my, mmflags);
} else if (ptr->geno & G_LGROUP) {
if (u.uhave.amulet || !rn2(3)) {
x = somex(croom);
y = somey(croom);
- tmonst = makemon((struct permonst *) 0, x, y, NO_MM_FLAGS);
+ tmonst = makemon((struct permonst *) 0, x, y, (MM_NOGRP | MM_ASLEEP));
if (tmonst && tmonst->data == &mons[PM_GIANT_SPIDER]
&& !occupied(x, y))
(void) maketrap(x, y, WEB);