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

@@ -1374,6 +1374,9 @@ command line processing interleaved with options file processing is complex:
a recent change to make 'color' show up for tty in the short options
menu resulted in 'nethack --windowtype:X11' running X11 with ascii map
('NETHACKOPTIONS=windowtype:X11 nethack' continued to default to tiles)
when the Astral level got created, any fake player character monsters that
were seen or sensed when created were reported as "<mon> suddenly
appears!" rather than be treated as part of level's initial population
curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support

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;