[net.bugs.4bsd] Trivial bug in rogue 5.3's inventory

laman@sdcsvax.UUCP (Mike Laman) (08/11/84)

If one uses the indiviual inventory ('I') in 5.3, the pack character that it
prints out is ALWAYS 'a'.  Start up a game and drop everything but one item
that you know is NOT the 'a'th item in our pack.  Now do an 'I'.  It is
intelligent enough to know you have only one pack item, so it prints out
the item without prompting you.  BUT, it ALWAYS prints out a pack character
of 'a'.  I would bet that this is an oversight from the conversion of pack
handling that used to shuffle the pack objects to the "lowest" unused
letter when an item was dropped, an so the assumption was correct.

The fix is simple:  In "picky_inven()" modify the second "msg()" call to
use a "%c) %s" for the first argument and add a second argument to print out
the pack character.

		Mike Laman
		UUCP: {ucbvax,philabs,sdcsla}!sdcsvax!laman

brian@uwvax.ARPA (08/12/84)

GREAT FIX.  I don't know how you did it (got source that is).  Why don't
you enlighten us poor people further and post your source.  I'm sure a lot
of the other bugs would be fixed overnight if everyone had the source.
-- 
Brian Pinkerton @ wisconsin
...!{allegra,heurikon,ihnp4,seismo,sfwin,ucbvax,uwm-evax}!uwvax!brian
brian@wisc-rsch.arpa