Article View: net.bugs
Article #259Trivial bug in rogue 5.3's inventory
From: Mike Laman
Date: Sat, 11 Aug 1984 03:06
Date: Sat, 11 Aug 1984 03:06
15 lines
1421 bytes
1421 bytes
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
Technical Details
Message-ID:
<1121@sdcsvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!sdcsvax!lamanShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdcsvax.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!sdcsvax!laman From: laman@sdcsvax.UUCP (Mike Laman) Newsgroups: net.bugs,net.bugs.4bsd Subject: Trivial bug in rogue 5.3's inventory Message-ID: <1121@sdcsvax.UUCP> Date: Fri, 10-Aug-84 23:06:00 EDT Article-I.D.: sdcsvax.1121 Posted: Fri Aug 10 23:06:00 1984 Date-Received: Mon, 13-Aug-84 00:18:31 EDT Organization: EECS Dept. U.C. San Diego Lines: 15