pack instantaneously.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7231 c06c8d41-db1a-0410-9941-cceddc491573
Q652MJM34TH2ZV6CPA2RERMJMDMK2TQEAALRMXK2G6Y25UWKRJ3QC KQND6BVYRAXIIFSRNH32DXWMCNHSZ6AXAT742XUK7H3X7JO52SRQC QUBQZMAVSWJ7JVOL7CBSOXBEVW2WYK2MDFA2JCZWX62R2GEKP3ZQC LS35EVRDCOWZ46ZPCVFEREHEDKGCFUC4GIZVPDLKKQHP3W7RRZPAC IJ42MPJWHFIRW534PV6FPLNYXAQJYMDO4Z476CV7QQJFMWVAOEDAC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC ASCTVJSN3NXYQHRVXAORA43CV6H5V2572IMK4UGRHKBAGJOWHC4AC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC for (int i = 0; i < ENDOFPACK; ++i){if (i == slot || !is_valid_item(you.inv[i]))continue;// Merge with the thrower slot. This could be a bad// thing if you're wielding IDed ammo and firing from// an unIDed stack...but that's a pretty remote case.if (items_stack(you.inv[i], you.inv[slot])){if (!done_anything)mpr("You combine your ammunition.");inc_inv_item_quantity(slot, you.inv[i].quantity);dec_inv_item_quantity(i, you.inv[i].quantity);done_anything = true;}}}