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:
Michael Meyer
2023-11-16 17:01:27 -05:00
committed by PatR
parent 73fed3d5d8
commit f5a22ff5f8
4 changed files with 16 additions and 6 deletions

View File

@@ -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 */