fake player creation on Astral

Reported by entrez:  fake player monsters on the Astral Plane level
were giving "<role> suddenly appears!" feedback if they could be
seen or sensed when the hero arrived on that level.

They're generated separately from the level itself so the message
suppression in place during level creation didn't guard against it.
This commit is contained in:
PatR
2022-08-31 13:04:54 -07:00
parent f71bff3285
commit 2767f4b302
2 changed files with 4 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ mk_mplayer(struct permonst *ptr, coordxy x, coordxy y, boolean special)
if (!In_endgame(&u.uz))
special = FALSE;
if ((mtmp = makemon(ptr, x, y, NO_MM_FLAGS)) != 0) {
if ((mtmp = makemon(ptr, x, y, special ? MM_NOMSG : NO_MM_FLAGS)) != 0) {
short weapon, armor, cloak, helm, shield;
int quan;
struct obj *otmp;