From a49c872f47a46b72d8f3e06762204faa0c6611e5 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 17 Nov 2023 00:43:06 -0800 Subject: [PATCH] another 'm #overview' fix Once in the endgame, suppress non-endgame levels from the 'm #overview' annotation menu like is already done for normal #overview. --- doc/fixes3-7-0.txt | 1 + src/dungeon.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 513d975d9..5a5198b5a 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1746,6 +1746,7 @@ don't attempt a second hit for bare handed/martial arts if wearing a shield when using 'm #overview' to annotate a level other than current the one, include level number, and dungeon branch if not current one, in the prompt instead of generic "this level" +when using 'm #overview' in the endgame, don't include non-endgame levels Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository diff --git a/src/dungeon.c b/src/dungeon.c index 52e04329a..3f193dc65 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -3422,7 +3422,7 @@ show_overview( if (In_endgame(&u.uz)) traverse_mapseenchn(1, win, why, reason, &lastdun); /* if game is over or we're not in the endgame yet, show the dungeon */ - if (why != 0 || !In_endgame(&u.uz)) + if (why > 0 || !In_endgame(&u.uz)) traverse_mapseenchn(0, win, why, reason, &lastdun); end_menu(win, (char *) 0); n = select_menu(win, (why != -1) ? PICK_NONE : PICK_ONE, &selected);