X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=5a82a5b225b70a91c3b473984230e53f0b6902bf;hb=f47dc9f44798e3d03e4760c8b53b44c7de4c92f9;hp=a17abdee82a7d5e6ce0899dd679c9c9191ba55d1;hpb=7f7f49b7396135f53e31c03d28ecc4d69b8b4584;p=open-adventure.git diff --git a/actions.c b/actions.c index a17abde..5a82a5b 100644 --- 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;