obj->how_lost fix

PR #1140 added checking the thrown, stolen, and dropped flags of an
item when testing whether it would merge (at my suggestion...) with
a stack in the target list (hero's invent).  That interferred with
picking it back up--whether via autopickup or explicit pickup--while
inventory was full even when the item would otherwise be mergable.

There was some trial and error involved when trying to figure where
to put the fix but things seem to be working.

This replaces a static analyzer workaround and could possibly bring
its unwarranted complaint back.
This commit is contained in:
PatR
2024-01-21 01:17:18 -08:00
parent 5bf258629a
commit 593a93d254
3 changed files with 34 additions and 22 deletions

View File

@@ -1833,6 +1833,8 @@ duration of temporary stoning resistance would be extended while eating a
meal safely
farlook at something that was on top of an engraving or grave would report
the engraving text or headstone epitaph along with the 'something'
when carrying 52 items (excluding gold), hero couldn't pick up a thrown,
stolen, or dropped item which was split off from a still-carried stack
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository