^I vs perm_invent again
A recent fix for #wizidentify showing "Not carrying anything" after listing inventory items still showed "Not carrying anything" after "(all items are already identified)". Fix is easy. Trickier bug was that ^I performs object ID on selected items while the inventory routine is still in progress (but after it has processed every item) and the ID routine will call update_inventory() which will call the inventory routine to reformat invent. So the inventory display routine was called recursively without having returned to wizidentify where iflags.override_ID gets cleared to revert to normal inventory. The nested call was unintentionally narrowing the contents of persistent inventory window to whatever items were still unIDed. (Any inventory update, including ^R, restored it to full inventory.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.76 $ $NHDT-Date: 1561750114 2019/06/28 19:28:34 $
|
||||
$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.77 $ $NHDT-Date: 1561751390 2019/06/28 19:49:50 $
|
||||
|
||||
This fixes36.3 file is here to capture information about updates in the 3.6.x
|
||||
lineage following the release of 3.6.2 in May 2019. Please note, however,
|
||||
@@ -86,6 +86,9 @@ partly eaten food with one bite left had message anomalies when eaten; the
|
||||
resulted in no messages at all when restarting and finishing last bite
|
||||
wizard mode ^I menu could list "Not carrying anything" after inventory items
|
||||
if perm_invent option was On (even on tty where that's not supported)
|
||||
wizard mode ^I with 'perm_invent' On would unintentionally filter the content
|
||||
of the persistent inventory window to unIDed items if any item got
|
||||
chosen to be identified (^R would fix it, as would any invent change)
|
||||
change #adjust to treat carrying only gold as not having anything to adjust
|
||||
saving bones with 'perm_invent' On could result in "Bad fruit #N" warnings
|
||||
update persistent inventory window immediately if 'sortpack' option is toggled
|
||||
@@ -103,6 +106,8 @@ for wizard mode 'wizweight' option, glob weight wasn't shown unless glob had
|
||||
shop price information attached
|
||||
fix for feedback when a monster plays a fire horn at self to cure green slime
|
||||
ended up being used for zapping a wand of fire at self too
|
||||
wizard mode ^I "not carrying anything" still claimed "not carrying anything"
|
||||
if "(all items are already identified)" was given
|
||||
curses: sometimes the message window would show a blank line after a prompt
|
||||
curses: the change to show map in columns 1..79 instead of 2..80 made the
|
||||
highlight for '@' show up in the wrong place if clipped map had been
|
||||
|
||||
Reference in New Issue
Block a user