]> granicus.if.org Git - nethack/commit
R739 - dead migrating monster
authorcohrs <cohrs>
Mon, 1 Apr 2002 07:03:44 +0000 (07:03 +0000)
committercohrs <cohrs>
Mon, 1 Apr 2002 07:03:44 +0000 (07:03 +0000)
commita0ba9d142149fe2b10c5b9f63b0193e3625d4eb7
treec89df3e1c2cd06acedb9499fe4e234c5abfd9dc4
parent31c4ccd43bebe9f4e18f7199d2041dfee8cd8875
R739 - dead migrating monster
- It was possible for hmon_hitmon to call mhurtle to move a monster into a
hole or other trap, causing it to migrate.  Then, hmon_hitmon would
subtract hp, and could mark the monster as dead.  Later, dmonsfree would
notice the monster wasn't on the level anymore, causing the impossible.
Avoid the problem by just not hurtling the monster if it's going to die.
It's possible it will get lifesaved after not hurtling.  Technically, if it
does die, the corpse should be hurtled, but won't be.
- treat jousting similarly
doc/fixes34.1
src/uhitm.c