projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support loud locations.
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index 5a82a5b225b70a91c3b473984230e53f0b6902bf..b6cfc33d0210328c7a2f7ed81c9fc180dfa229d6 100644
(file)
--- 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) {
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)
}
for (int i = 1; i <= NOBJECTS; i++) {
if (!HERE(i) || OBJSND[i] == 0 || game.prop[i] < 0)