Print current level annotation when restoring
Sometimes I annotate a level with a note like "watch out, chameleon below", which is useful to remind myself of some danger or thing to remember when returning to the level -- but if saving and restoring on the level itself there's no reminder of that annotation. If you restore on a level with an annotation, print it as part of the "welcome back" message.
This commit is contained in:
5
src/do.c
5
src/do.c
@@ -1419,7 +1419,6 @@ goto_level(
|
||||
new = FALSE; /* made a new level? */
|
||||
struct monst *mtmp;
|
||||
char whynot[BUFSZ];
|
||||
char *annotation;
|
||||
int dist = depth(newlevel) - depth(&u.uz);
|
||||
boolean do_fall_dmg = FALSE;
|
||||
schar prev_temperature = gl.level.flags.temperature;
|
||||
@@ -1881,9 +1880,7 @@ goto_level(
|
||||
save_currentstate();
|
||||
#endif
|
||||
|
||||
if ((annotation = get_annotation(&u.uz)) != 0)
|
||||
You("remember this level as %s.", annotation);
|
||||
|
||||
print_level_annotation();
|
||||
/* give room entrance message, if any */
|
||||
check_special_room(FALSE);
|
||||
/* deliver objects traveling with player */
|
||||
|
||||
Reference in New Issue
Block a user