Reported by entrez: dropping items with the 'D' command sets obj->bypass which prevents an otherwise compatible item from merging with non-bypass floor stack. 'D' sets the bypass bit to avoid trouble if a dropped item triggers an explosion that destroys some of inventory (making straightforward invent traversal be unreliable). Having bypass set prevented merging with a floor stack that had that flag bit clear. That was very noticeable if a subset of a stack was picked up and then 'D' used to drop it again, resulting in two stacks instead of recombining into the original. Change the test for mergability to ignore bypass so items will merge when one has it set and other doesn't. And when successfully merging set bypass on the combined stack if either part had that set.
123 KiB
123 KiB