groundwork for window port interface change to add_menu
groundwork only - window port interface change This changes the last parameter for add_menu() from a boolean to an unsigned int, to allow additional itemflags in future beyond just the "preselected" that the original boolean offered. There shouldn't be any functionality changes with this groundwork-only change, and if there are it is unintentional and should be reported.
This commit is contained in:
+2
-2
@@ -607,8 +607,8 @@ dotelecmd()
|
||||
any.a_int = (int) tports[i].menulet;
|
||||
add_menu(win, NO_GLYPH, &any, (char) any.a_int, 0, ATR_NONE,
|
||||
tports[i].menudesc,
|
||||
(tports[i].menulet == 'w') ? MENU_SELECTED
|
||||
: MENU_UNSELECTED);
|
||||
(tports[i].menulet == 'w') ? MENU_ITEMFLAGS_SELECTED
|
||||
: MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
end_menu(win, "Which way do you want to teleport?");
|
||||
i = select_menu(win, PICK_ONE, &picks);
|
||||
|
||||
Reference in New Issue
Block a user