Show level annotation when overwriting existing one

Idea by Chris Smith, via UnNetHack
This commit is contained in:
Pasi Kallinen
2015-04-26 11:10:34 +03:00
parent cc5274d0b6
commit f28ba6f131

View File

@@ -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);