]> granicus.if.org Git - nethack/commit
Fix: loot regression, auto-select with justpicked
authorMichael Meyer <me@entrez.cc>
Fri, 27 May 2022 23:36:26 +0000 (19:36 -0400)
committerPatR <rankin@nethack.org>
Sat, 28 May 2022 23:56:25 +0000 (16:56 -0700)
commit991e739af4b457f7b3f9d8394be68a3be34f8cca
tree16c675c128effcfa71dc10a7a21072ad01c954cd
parent16c2c3b32fce508453292d472a5d764945b9043f
Fix: loot regression, auto-select with justpicked

When using 'A'/autopick with the 'items you just picked up' category,
instead of autoselecting all items within that category, it selected
every item in your inventory (like it used to work before 3.7).  Just
blew up a bag of holding because of this.

While testing the fix for that, I noticed 'P' wasn't working at all
with menustyle:traditional -- you could select it as a filter, but it
didn't actually get applied to anything, so it would end up prompting
you for every item in inventory.  Fix both those things.
src/invent.c
src/pickup.c