[comp.sources.bugs] Nethack bug

sdo@ursa.UUCP (Scott) (09/15/87)

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

DLE@KL.SRI.COM (David L. Edwards) (09/29/87)

There is a nethack1.4f bug which occurs when your spell goofs, the
status line is not updated.

-dle