X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=b6cfc33d0210328c7a2f7ed81c9fc180dfa229d6;hb=1e8c3a4a1dae68a13596ed8e1e82500e869695da;hp=5a82a5b225b70a91c3b473984230e53f0b6902bf;hpb=f47dc9f44798e3d03e4760c8b53b44c7de4c92f9;p=open-adventure.git diff --git a/actions.c b/actions.c index 5a82a5b..b6cfc33 100644 --- a/actions.c +++ b/actions.c @@ -675,9 +675,11 @@ static int listen(void) int spk = ALL_SILENT; k = locations[game.loc].sound; if (k != SILENT) { - rspeak(labs(k)); - if (k < 0) return GO_CLEAROBJ; - spk = NO_MESSAGE; + rspeak(k); + if (locations[game.loc].loud) + return GO_CLEAROBJ; + else + spk = NO_MESSAGE; } for (int i = 1; i <= NOBJECTS; i++) { if (!HERE(i) || OBJSND[i] == 0 || game.prop[i] < 0)