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.
This commit is contained in:
PatR
2023-11-17 00:43:06 -08:00
parent 387cef9899
commit a49c872f47
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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, 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 include level number, and dungeon branch if not current one, in the
prompt instead of generic "this level" 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 Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository
+1 -1
View File
@@ -3422,7 +3422,7 @@ show_overview(
if (In_endgame(&u.uz)) if (In_endgame(&u.uz))
traverse_mapseenchn(1, win, why, reason, &lastdun); traverse_mapseenchn(1, win, why, reason, &lastdun);
/* if game is over or we're not in the endgame yet, show the dungeon */ /* 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); traverse_mapseenchn(0, win, why, reason, &lastdun);
end_menu(win, (char *) 0); end_menu(win, (char *) 0);
n = select_menu(win, (why != -1) ? PICK_NONE : PICK_ONE, &selected); n = select_menu(win, (why != -1) ? PICK_NONE : PICK_ONE, &selected);