Show the teleportation messages only with flags.verbose

This commit is contained in:
Patric Mueller
2020-01-04 22:46:58 +01:00
parent 02731cb996
commit 0c89eb32f5

View File

@@ -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.<x,y>, usteed-><mx,my>; 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