]> granicus.if.org Git - nethack/commit
fix burned by burning/drowned in a drowning
authornethack.rankin <nethack.rankin>
Fri, 29 Sep 2006 02:54:17 +0000 (02:54 +0000)
committernethack.rankin <nethack.rankin>
Fri, 29 Sep 2006 02:54:17 +0000 (02:54 +0000)
commitd526b4f32f07c3166e24579e9fb8ddd3a08ef2c1
treecd572bd4575623a8daeb39d156154f93c5337fad
parent556226f6955e26ef849812b3e81626598ed33d52
fix burned by burning/drowned in a drowning

     From a bug report:  you could end up with
gravestone/logfile result of "burned by burning" or "drowned in a drowning".
If you get life-saved when drowning in water or burning in lava, the game
tries to teleport you to safety.  If the teleport fails for some reason--
such as lack of unoccupied non-water or non-lava locations--you drown or
burn again.  But life-saving was resetting the killer reason and the repeat
drowning/burning wasn't setting it up again, so the default got used and
produced a silly result.
src/trap.c