]> granicus.if.org Git - nethack/commit
Sleeping vs Sleepy (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 28 Jul 2011 04:00:21 +0000 (04:00 +0000)
committernethack.rankin <nethack.rankin>
Thu, 28 Jul 2011 04:00:21 +0000 (04:00 +0000)
commit28ab93325e067faa79e18d15775b6ee47e4a822e
tree39f252e4d6450cde34b84291de64944ccf6ddc7e
parent164f498a41094285704dac78f4fa4389a0b18894
Sleeping vs Sleepy (trunk only)

     While looking at fixing the mfrozen issue for monsters (there's no
way to tell whether it's been caused by sleep or paralysis, necessitating
that some messages be vague or suppressed when actions impact monsters
who can't move), I noticed a drawbridge bug for the hero.  It was using
the misleadingly named Sleeping intrinsic incorrectly.  When that is
nonzero, the hero is prone to falling asleep at random intervals, not
necessarily asleep right now.  I've always intended to rename it to
something that's not misleading, but hadn't ever gotten around to doing
so, until now:  change the SLEEPING property to SLEEPY and the Sleeping
intrinsic/attribute to Sleepy.

     This may be moot for the drawbridge.  I can't remember any hero ever
jumping to safety instead of being crushed by either the bridge or its
portcullis, and I'm sure sleepiness hasn't been a factor.  So I haven't
included any fixes entry about misusing Sleeping when it meant u.usleep
(or better yet, unconscious(); or even better, Unaware [a post-3.4.3
pseudo-property that tests both unconscious() and fainted() when checking
whether hero is incapacitated]).
doc/fixes35.0
include/prop.h
include/youprop.h
src/cmd.c
src/dbridge.c
src/do_wear.c
src/eat.c
src/objects.c
src/timeout.c