Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!ucla-cs!zen!ucbvax!decvax!linus!philabs!sunrise!ursa!sdo From: sdo@ursa.UUCP (Scott) Newsgroups: comp.sources.bugs Subject: nethack bug (makemon panic) Message-ID: <300@teddy.ursa.UUCP> Date: Tue, 15-Sep-87 16:55:12 EDT Article-I.D.: teddy.300 Posted: Tue Sep 15 16:55:12 1987 Date-Received: Sun, 20-Sep-87 15:40:41 EDT Reply-To: sdo@ursa.UUCP (Scott Oaks) Organization: Bear Stearns, New York Lines: 23 I have seen a few complaints about the "Suddenly the dungeon collapses" with the resulting "died due to a panic" in the record file but I have not seen a fix yet, so here is one. I don't want to provide diffs, becuase my line number are off from some changes made elsewhere (like removing three consecutive assignments to tmp). But around line 55 is the following code: #ifdef KOPS ct++; #endif If you play with KOPS defined, this has two effects: 1) it means that you will never get a bat as a monster and 2) it means that if you genocide enough monsters and go deep enough, eventually you will get an off-by-one error in makemon() which will cause it to call panic. All you have to do is remove these three lines (or not define KOPS, or rewrite makemon into a reasonable function, or . . .) and the off-by-one error disappears (and you get bats). -- Scott Oaks Bear Stearns (212) 952-3164 {sun!sunrise, convex, cuctr}!ursa!sdo