diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 59ae297b1..7e779e615 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -77,6 +77,8 @@ General New Features -------------------- when you're teetering on the edge of a pit you can use '>' to enter the pit when asked for a direction, a response of '?' yields help and then asks again +when adding an item to inventory, try to stack it with the quiver slot + before trying against other carried objects Platform- and/or Interface-Specific New Features diff --git a/src/invent.c b/src/invent.c index e6d359674..a7c2a625c 100644 --- a/src/invent.c +++ b/src/invent.c @@ -305,6 +305,13 @@ struct obj *obj; return obj; #endif + /* merge with quiver in preference to any other inventory slot + in case quiver and wielded weapon are both eligible; adding + extra to quivered stack is more useful than to wielded one */ + if (uquiver && merged(&uquiver, &obj)) { + obj = uquiver; + goto added; + } /* merge if possible; find end of chain in the process */ for (prev = 0, otmp = invent; otmp; prev = otmp, otmp = otmp->nobj) if (merged(&otmp, &obj)) {