From db4a44735eb4441e3b7c2598243e5480b8a8fe72 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 3 Jan 2024 10:28:16 +0200 Subject: [PATCH] Message locations for Monster creation and teleporting --- src/makemon.c | 4 +++- src/teleport.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/makemon.c b/src/makemon.c index 788808821..92e2282f4 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1466,13 +1466,15 @@ makemon( mhidden_description(mtmp, FALSE, mbuf); what = upstart(strsubst(mbuf, ", mimicking ", "")); } - if (what) + if (what) { + set_msg_xy(mtmp->mx, mtmp->my); Norep("%s%s appears%s%c", what, exclaim ? " suddenly" : "", next2u(x, y) ? " next to you" : (distu(x, y) <= (BOLT_LIM * BOLT_LIM)) ? " close by" : "", exclaim ? '!' : '.'); + } } /* if discernable and a threat, stop fiddling while Rome burns */ if (go.occupation) diff --git a/src/teleport.c b/src/teleport.c index f0d30fe29..a6bfb359e 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -1613,6 +1613,7 @@ rloc_to_core( const char *next = (du <= 2) ? " next to you" : 0, /* next2u() */ *nearu = (du <= BOLT_LIM * BOLT_LIM) ? " close by" : 0; + set_msg_xy(x, y); mtmp->mstrategy &= ~STRAT_APPEARMSG; /* one chance only */ if (telemsg && (couldsee(x, y) || sensemon(mtmp))) { pline("%s vanishes and reappears%s.",