Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!botter!ark!maartenj From: maartenj@cs.vu.nl (Maarten Jan Huisjes) Newsgroups: rec.games.hack,comp.sources.bugs Subject: Another Nethack bug solved Message-ID: <1141@ark.cs.vu.nl> Date: Wed, 21-Oct-87 15:18:55 EDT Article-I.D.: ark.1141 Posted: Wed Oct 21 15:18:55 1987 Date-Received: Sat, 24-Oct-87 06:08:00 EDT Reply-To: maartenj@cs.vu.nl (Huisjes Maarten Jan) Organization: VU Informatica, Amsterdam Lines: 29 Xref: mnetor rec.games.hack:1646 comp.sources.bugs:382 I found it , I found it !!! Sometimes your dog or a monster is taking the same space as you or it standing in solid rock or in a wall, etc. This bug can be fixed as follows: (No context diffs because I don't have any original sources any more) In the file makemon.c: the last 5 lines of the function enexto(cc, xx,yy) are as follows: ! foofull: - cc->x = foo[rn2(tfoo-foo)].x; - cc->y = foo[rn2(tfoo-foo)].y; ! return(0); ! } The bug is that for the x and the y a different random is taken instead of the same. change them into : ! foofull: + *cc = foo[rn2(tfoo-foo)]; ! return(0); ! } -- Maarten Jan Huisjes. (maartenj@cs.vu.nl) {seismo|decvax|philabs}!mcvax!vu44!maartenj