From 6cbf8ccef49ef5a70bb146bca047ec2c88b1a1d3 Mon Sep 17 00:00:00 2001 From: copperwater Date: Mon, 28 May 2018 22:12:47 -0400 Subject: [PATCH] Always print a message when the hero teleports It's useful to get a message as indication you suddenly moved somewhere. For instance, MSGTYPE=stop can be used on this to avoid bumbling in the wrong direction after a spontaneous uncontrolled teleport. --- src/teleport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/teleport.c b/src/teleport.c index 34707085d..5baf2d9e4 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -355,6 +355,8 @@ boolean allow_drag; } } } + 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() */