Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!ukc!its63b!xsimon From: xsimon@its63b.UUCP Newsgroups: comp.sources.bugs Subject: another nethack bug Message-ID: <615@its63b.ed.ac.uk> Date: Tue, 1-Sep-87 10:27:54 EDT Article-I.D.: its63b.615 Posted: Tue Sep 1 10:27:54 1987 Date-Received: Thu, 3-Sep-87 06:21:42 EDT Reply-To: xsimon@its63b.ed.ac.uk (Simon Brown) Organization: Computer Science Department, Edinburgh University Lines: 71 If you have no weapon wielded and you #pray to the gods, if they decide to bless your weapon, they will try to uncurse your rings instead. If you are not wearing any rings either, nethack will core-dump (except on a vax). Also, due to a typo, it always uncurses your *left* ring, even when it says it's doing the right one (in the rare cases when in *doesn't* core-dump!). Context-diff follows: -------------------------------------------------- *** /tmp/pr.c Tue Sep 1 15:21:29 1987 --- pray.c Tue Sep 1 15:21:20 1987 *************** *** 85,91 break; case 1: if(!uwep) { ! if(uleft->cursed) { pline("your left hand glows amber."); uleft->cursed = 0; } else if(uright->cursed) { --- 85,91 ----- break; case 1: if(!uwep) { ! if(uleft && uleft->cursed) { pline("your left hand glows amber."); uleft->cursed = 0; } else if(uright && uright->cursed) { *************** *** 88,94 if(uleft->cursed) { pline("your left hand glows amber."); uleft->cursed = 0; ! } else if(uright->cursed) { pline("your right hand glows amber."); uleft->cursed = 0; } else pline("but nothing seems to happen."); --- 88,94 ----- if(uleft && uleft->cursed) { pline("your left hand glows amber."); uleft->cursed = 0; ! } else if(uright && uright->cursed) { pline("your right hand glows amber."); uright->cursed = 0; } else pline("but nothing seems to happen."); *************** *** 90,96 uleft->cursed = 0; } else if(uright->cursed) { pline("your right hand glows amber."); ! uleft->cursed = 0; } else pline("but nothing seems to happen."); break; } --- 90,96 ----- uleft->cursed = 0; } else if(uright && uright->cursed) { pline("your right hand glows amber."); ! uright->cursed = 0; } else pline("but nothing seems to happen."); break; } -- ---------------------------------- | Simon Brown | UUCP: seismo!mcvax!ukc!its63b!simon | Department of Computer Science | JANET: simon@uk.ac.ed.its63b | University of Edinburgh, | ARPA: simon%its63b.ed.ac.uk@cs.ucl.ac.uk | Scotland, UK. | ---------------------------------- "Life's like that, you know"