Location sounds are now declared by YAML.

This commit is contained in:
Eric S. Raymond 2017-06-23 10:10:48 -04:00
parent 98b7434b0b
commit f47dc9f447
4 changed files with 11 additions and 11 deletions

View file

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