From: nethack.allison Date: Sat, 5 Jun 2004 13:56:29 +0000 (+0000) Subject: hearing a boulder fall X-Git-Tag: MOVE2GIT~1450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6085c8b658f8d828c3daff065a28a0b397a49612;p=nethack hearing a boulder fall As From a bug report, if you couldn't see a rolling boulder fall into a pit, you only heard the sound if you were blind. Also fixes the article used in the message. --- diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 2a54dc5fe..aeefbc06b 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -32,6 +32,8 @@ prevent "offering" or other words with similar ending from matching ring quote make cleric cast lightning blind as other lightning does change the wording slightly to use "one of " when a monster wielding multiple daggers thrusts them +if you didn't see a rolling boulder fall into a pit, you only heard the sound + of it doing so if you were blind Platform- and/or Interface-Specific Fixes diff --git a/src/do.c b/src/do.c index 3f379e49f..7beb55373 100644 --- a/src/do.c +++ b/src/do.c @@ -171,17 +171,16 @@ const char *verb; } } if (*verb) { - if (Blind) { - if ((x == u.ux) && (y == u.uy)) - You_hear("a CRASH! beneath you."); - else - You_hear("the boulder %s.", verb); + if (Blind && (x == u.ux) && (y == u.uy)) { + You_hear("a CRASH! beneath you."); } else if (cansee(x, y)) { pline_The("boulder %s%s.", t->tseen ? "" : "triggers and ", t->ttyp == TRAPDOOR ? "plugs a trap door" : t->ttyp == HOLE ? "plugs a hole" : "fills a pit"); + } else { + You_hear("a boulder %s.", verb); } } deltrap(t);