Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!tank!eecae!netnews.upenn.edu!linc.cis.upenn.edu!izchak From: izchak@linc.cis.upenn.edu (Izchak Miller) Newsgroups: comp.sources.games.bugs Subject: NetHack 3.0: Stopgap bugfix Message-ID: <13800@netnews.upenn.edu> Date: 21 Aug 89 04:02:51 GMT Sender: news@netnews.upenn.edu Reply-To: izchak@linc.cis.upenn.edu (Izchak Miller) Distribution: comp.sources.games.bugs Organization: University of Pennsylvania Lines: 44 Unfortunately, we again face the need to distribute a bugfix in advance of the next Patchlevel. The diff bellow will correct a mistake in the pickup code related to shop behavior. Please apply this diff right away (to prevent unfair advantage to some quick players :-)). Sorry for the bother. -Izchak *** Old/pickup.c Fri Aug 18 02:42:07 1989 --- pickup.c Sun Aug 20 23:31:33 1989 *************** *** 270,275 if(obj->spe) obj->spe = 0; break; } freeobj(obj); if(Invisible) newsym(u.ux,u.uy); addtobill(obj, TRUE); /* sets obj->unpaid if necessary */ --- 270,276 ----- if(obj->spe) obj->spe = 0; break; } + addtobill(obj, TRUE); /* sets obj->unpaid if necessary */ freeobj(obj); if(Invisible) newsym(u.ux,u.uy); if(wt > -5) You("have a little trouble lifting"); *************** *** 272,278 } freeobj(obj); if(Invisible) newsym(u.ux,u.uy); - addtobill(obj, TRUE); /* sets obj->unpaid if necessary */ if(wt > -5) You("have a little trouble lifting"); { int pickquan = obj->quan; int mergquan; --- 273,278 ----- addtobill(obj, TRUE); /* sets obj->unpaid if necessary */ freeobj(obj); if(Invisible) newsym(u.ux,u.uy); if(wt > -5) You("have a little trouble lifting"); { int pickquan = obj->quan; int mergquan;