(from Yitzhak) ALT-?

This patch allows ALT-? to do #? in NetHack mode by not doing
TranslateAccelerator in NetHack mode.  This relies on the short circuit
logic of || (much of NetHack code relies on it, it's just an explanatory note).
This commit is contained in:
nethack.allison
2002-03-17 17:07:22 +00:00
parent 855e6eef88
commit dce21606ab

View File

@@ -1702,7 +1702,9 @@ void mswin_main_loop()
while( !mswin_have_input() &&
GetMessage(&msg, NULL, 0, 0)!=0 ) {
if (!TranslateAccelerator(msg.hwnd, GetNHApp()->hAccelTable, &msg)) {
if (GetNHApp()->regNetHackMode ||
!TranslateAccelerator(msg.hwnd, GetNHApp()->hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}