Location sounds are now declared by YAML.
[open-adventure.git] / actions.c
index a17abdee82a7d5e6ce0899dd679c9c9191ba55d1..5a82a5b225b70a91c3b473984230e53f0b6902bf 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -671,10 +671,10 @@ static int light(token_t verb, token_t obj)
 static int listen(void)
 /*  Listen.  Intransitive only.  Print stuff based on objsnd/locsnd. */
 {
-    int k;
+    long k;
     int spk = ALL_SILENT;
-    k = LOCSND[game.loc];
-    if (k != 0) {
+    k = locations[game.loc].sound;
+    if (k != SILENT) {
         rspeak(labs(k));
         if (k < 0) return GO_CLEAROBJ;
         spk = NO_MESSAGE;