From: nethack.allison Date: Mon, 23 Aug 2004 22:54:02 +0000 (+0000) Subject: ensure that a sleeping steed doesn't answer you X-Git-Tag: MOVE2GIT~1425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31bf37ee7ce79309d241db3e18e575192a1f3d39;p=nethack ensure that a sleeping steed doesn't answer you --- diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 5382057bf..dcc3db8a9 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -50,6 +50,7 @@ really fix rolling boulder bug C340-18, the previous "fix" reversed the test monster throwing greased weapon has same chance for slip/misfire as player killing a pet by displacing it into a trap now yields experience prevent a rolling boulder that is in motion from vanishing in bones files +ensure that a sleeping steed doesn't answer a #chat Platform- and/or Interface-Specific Fixes diff --git a/src/sounds.c b/src/sounds.c index bb0095c36..644037d23 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -867,9 +867,14 @@ dochat() } #ifdef STEED - if (u.usteed && u.dz > 0) - return (domonnoise(u.usteed)); + if (u.usteed && u.dz > 0) { + if (!u.usteed->mcanmove || u.usteed->msleeping) + pline("%s seems not to notice you.", Monnam(u.usteed)); + else + return (domonnoise(u.usteed)); + } #endif + if (u.dz) { pline("They won't hear you %s there.", u.dz < 0 ? "up" : "down"); return(0);