From 0c89eb32f593d07545f16b52edf0e46f45a3f1ac Mon Sep 17 00:00:00 2001 From: Patric Mueller Date: Sat, 4 Jan 2020 22:46:58 +0100 Subject: [PATCH] Show the teleportation messages only with flags.verbose --- src/teleport.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/teleport.c b/src/teleport.c index 6e711cfbf..6707cc9d2 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -355,8 +355,11 @@ boolean allow_drag; } } } - You("materialize in %s location!", - (nux == u.ux0 && nuy == u.uy0) ? "the same" : "a different"); + + if (flags.verbose) + You("materialize in %s location!", + (nux == u.ux0 && nuy == u.uy0) ? "the same" : "a different"); + /* must set u.ux, u.uy after drag_ball(), which may need to know the old position if allow_drag is true... */ u_on_newpos(nux, nuy); /* set u., usteed->; cliparound() */ @@ -1017,12 +1020,14 @@ level_tele() if (!(wizard && force_dest)) get_level(&newlevel, newlev); } - schedule_goto(&newlevel, FALSE, FALSE, 0, (char *) 0, (char *) 0); + + schedule_goto(&newlevel, FALSE, FALSE, 0, (char *) 0, + flags.verbose ? "You materialize on a different level!" : (char *)0); + /* in case player just read a scroll and is about to be asked to call it something, we can't defer until the end of the turn */ if (u.utotype && !g.context.mon_moving) deferred_goto(); - You("materialize on a different level!"); } void