Support loud locations.

This commit is contained in:
Eric S. Raymond 2017-06-23 11:16:37 -04:00
parent f47dc9f447
commit 1e8c3a4a1d
3 changed files with 14 additions and 5 deletions

View file

@ -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)