]> granicus.if.org Git - nethack/commitdiff
ensure that a sleeping steed doesn't answer you
authornethack.allison <nethack.allison>
Mon, 23 Aug 2004 22:54:02 +0000 (22:54 +0000)
committernethack.allison <nethack.allison>
Mon, 23 Aug 2004 22:54:02 +0000 (22:54 +0000)
doc/fixes34.4
src/sounds.c

index 5382057bffe49155adfe4dc05666924761d57b4e..dcc3db8a9140daba9866c947d2db13dae48da789 100644 (file)
@@ -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
index bb0095c3623672e82a74c0c9f8a3fd10a69b711c..644037d23b5ac4297ba91f5b3c334e4c3dc7cd78 100644 (file)
@@ -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);