Simplify adding menu headings

This commit is contained in:
Pasi Kallinen
2023-11-03 19:07:15 +02:00
parent 8dfcdfe753
commit a6051dae81
12 changed files with 68 additions and 73 deletions
+1 -2
View File
@@ -1763,8 +1763,7 @@ dospellmenu(
if (wizard)
Sprintf(eos(buf), "%c%6s", sep, "turns");
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0,
iflags.menu_headings, clr, buf, MENU_ITEMFLAGS_NONE);
add_menu_heading(tmpwin, buf);
for (i = 0; i < MAXSPELL && spellid(i) != NO_SPELL; i++) {
splnum = !gs.spl_orderindx ? i : gs.spl_orderindx[i];
Sprintf(buf, fmt, spellname(splnum), spellev(splnum),