From 655a340f69976f4e273f4a4a74fe89a06ed2c2ea Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Fri, 14 Nov 2008 00:38:28 +0000 Subject: [PATCH] fix #H1733 - fainting doesn't behave like falling (trunk only) Suggested by , fainting from lack of food while wielding a cockatrice corpse should fall on that corpse and be fatal, like triggering a pit or moving down stairs while too heavily encumbered. I put the fixes entry in the new features section even though it probably qualifies as a bug. --- doc/fixes35.0 | 1 + src/eat.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index a6a70e885..44edbacbe 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -413,6 +413,7 @@ streamline old ^X output and integrate it with enlightenment feedback; "killed by X" becomes "killed by a chameleon imitating X" when appropriate eating disenchanter corpses is now considered risky make '[' command more precise when poly'd hero has embedded dragon scales/mail +fainting while wielding a cockatrice corpse will be fatal Platform- and/or Interface-Specific New Features diff --git a/src/eat.c b/src/eat.c index a1191ef2e..d581489da 100644 --- a/src/eat.c +++ b/src/eat.c @@ -2723,6 +2723,7 @@ boolean incr; /* stop what you're doing, then faint */ stop_occupation(); You("faint from lack of food."); + if (!Levitation) selftouch("Falling, you"); incr_itimeout(&HDeaf, duration); nomul(-duration); nomovemsg = "You regain consciousness.";