From f28ba6f131d1773ccb0124fb17c6885b42fc9dcb Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 26 Apr 2015 11:10:34 +0300 Subject: [PATCH] Show level annotation when overwriting existing one Idea by Chris Smith, via UnNetHack --- src/dungeon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dungeon.c b/src/dungeon.c index cde5b8917..8c436e1c8 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1867,7 +1867,12 @@ donamelevel() if (!(mptr = find_mapseen(&u.uz))) return 0; - getlin("What do you want to call this dungeon level?", nbuf); + if (mptr->custom) { + char qbuf[BUFSZ]; + Sprintf(qbuf, "Replace annotation \"%s\" with?", mptr->custom); + getlin(qbuf, nbuf); + } else + getlin("What do you want to call this dungeon level?", nbuf); if (index(nbuf, '\033')) return 0; (void)mungspaces(nbuf); -- 2.40.0