win32gui: # to specifiy numeric count during loot
<email deleted> wrote: > Windows NetHack graphical Version 3.4.1 > comments: I have been unable to remove or put in partial groups > of items into a bag of holding or scak. With hethack 3.3.X I > could put 2 of 3 potions or 3000 of 8000 pieces of gold into the > bag. The menu persents you with the following options (yn#aq)(n). > Using # exits the menu and typing in the number you wish to use > does nothing. The work around is to drop the number you wish to > not store and put all the remaining into the bag then pick up the > remaining.
This commit is contained in:
@@ -1454,6 +1454,9 @@ char mswin_yn_function(const char *question, const char *choices,
|
||||
/* FYI: ch==-115 is for KP_ENTER */
|
||||
if (def && (ch==' ' || ch=='\r' || ch=='\n' || ch==-115)) {
|
||||
result=def;
|
||||
} else if( index(choices, '#') && isdigit(ch) ) {
|
||||
yn_number = ch;
|
||||
result = '#';
|
||||
} else {
|
||||
mswin_nhbell();
|
||||
/* and try again... */
|
||||
|
||||
Reference in New Issue
Block a user