Xref: utzoo comp.sources.bugs:518 rec.games.hack:1736 Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!mimsy!oddjob!gargoyle!jpusa1!news From: news@jpusa1.UUCP (usenet) Newsgroups: comp.sources.bugs,rec.games.hack Subject: nethack 2.2 fight.c fix Message-ID: <601@jpusa1.UUCP> Date: 9 Dec 87 12:24:22 GMT Reply-To: stu@jpusa1.UUCP (Stu Heiss) Organization: JPUSA - Chicago, IL Lines: 43 Keywords: fight.c bug fix Here's the fix for 'You stop to avoid hitting .'. Feed to patch. *** /tmp/,RCSt1a11194 Wed Dec 9 03:23:54 1987 --- fight.c Wed Dec 9 03:23:10 1987 *************** *** 463,469 /* changes by wwp 5/16/85 */ if (!Blind && !Confusion && !Hallucination && mdat->mlet == 'd' && mtmp->mtame) { ! char *dname; /* added by Janet Walz (walz@mimsy) */ mtmp->mflee = 1; mtmp->mfleetim = rnd(6); if (dname = NAME(mtmp)) --- 463,469 ----- /* changes by wwp 5/16/85 */ if (!Blind && !Confusion && !Hallucination && mdat->mlet == 'd' && mtmp->mtame) { ! /*char *dname; /* added by Janet Walz (walz@mimsy) */ mtmp->mflee = 1; mtmp->mfleetim = rnd(6); if (mtmp->mnamelth) *************** *** 466,473 char *dname; /* added by Janet Walz (walz@mimsy) */ mtmp->mflee = 1; mtmp->mfleetim = rnd(6); ! if (dname = NAME(mtmp)) ! pline("You stop to avoid hitting %s.",dname); else pline("You stop to avoid hitting your dog."); return(TRUE); --- 466,473 ----- /*char *dname; /* added by Janet Walz (walz@mimsy) */ mtmp->mflee = 1; mtmp->mfleetim = rnd(6); ! if (mtmp->mnamelth) ! pline("You stop to avoid hitting %s.",NAME(mtmp)); else pline("You stop to avoid hitting your dog."); return(TRUE); -- Stu Heiss {gargoyle,ihnp4}!jpusa1!stu