Xref: utzoo comp.sources.bugs:577 rec.games.hack:1815 Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!pyramid!hplabs!sdcrdcf!markb From: markb@sdcrdcf.UUCP (Mark Biggar) Newsgroups: comp.sources.bugs,rec.games.hack Subject: Re: More info on inventory bug in NetHack Message-ID: <5035@sdcrdcf.UUCP> Date: 16 Dec 87 18:14:28 GMT References: <528@silver.bacs.indiana.edu> Reply-To: markb@sdcrdcf.UUCP (Mark Biggar) Organization: Unisys - System Development Group, Santa Monica Lines: 18 Keywords: PC NetHack 2.2 In article <528@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes: >...I also said there is still a bug in that when it prints >more than one stackable item (e.g. "3 food rations") it omits the number >of items (and prints "food rations"). ...It's when you go >to a square that has more than one thing on the ground ("There are >several items here:") that it does this. This bug happens because eventually the line from the inventory list is displayed using "tputs" from termcap and leading digits are interpreted as delay padding and are removed. As a temp fix I just made a mod to doname() (in objnam.c) to always add a extra space to the front of any item that started with a number. A similar mod needs to be made in invent.c where the string for the gold in the pile is generated. This looks bad but allows you to get usuable inventories. Mark Biggar {allegra,burdvax,cbosgd,hplabs,ihnp4,akgua,sdcsvax}!sdcrdcf!markb markb@rdcf.sm.unisys.com