Files
nethack/doc
nethack.rankin 077606bc01 fix #H1826 - split long worm with 0 hit points
From a bug report, a long worm with 0 HP
was observed via stethoscope after cutting one or more worms in half many
times, followed by an unspecified crash.  Cutting a worm doesn't reduce
its level below 3, but if a worm is drained to level 0 by some other means
and then gets cut in half (and still has at least 2 HP left), cutworm()
would give the new level 0 worm 0d8 (hence 0) for current and max HP.
That could confuse end-of-move monster cleanup, which thinks 0 HP is a
dead monster who has been removed from the map but not yet purged from the
fmon list.  Purging it would then leave a stale monster pointer on the map.

     cutworm() should have special cased level 0 to use 1d4 for HP, but
instead I've changed it to not produce a cloned worm if the source one is
lower than level 3.
2009-03-06 02:22:14 +00:00
..
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2008-06-26 15:08:54 +00:00
2002-01-05 21:05:47 +00:00
2002-01-11 18:02:22 +00:00
2003-05-11 15:09:24 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2003-05-11 13:40:01 +00:00
2003-08-26 15:11:58 +00:00
2006-09-23 23:23:48 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2004-03-27 05:07:17 +00:00
2002-01-05 21:05:47 +00:00
2006-10-22 05:58:17 +00:00