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.
This commit is contained in:
copperwater
2018-05-28 22:12:47 -04:00
committed by Patric Mueller
parent d9c7a7b13c
commit 6cbf8ccef4

View File

@@ -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.<x,y>, usteed-><mx,my>; cliparound() */