X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=2132a9ac7e4561b94cecb3de82cc81760d120f45;hb=d587a5951b7c8ca3bab53a06d5d99b0017da9440;hp=0e56f254beeffa6e227e2ee8a557b8dc69ca9881;hpb=59a558b7622f1d12e4b52c4852f5577c55be26f6;p=open-adventure.git diff --git a/actions.c b/actions.c index 0e56f25..2132a9a 100644 --- a/actions.c +++ b/actions.c @@ -644,12 +644,12 @@ int light(token_t verb, token_t obj) } if (obj == URN) { - spk=URN_EMPTY; - if (game.prop[URN] == 0) - {RSPEAK(spk); return GO_CLEAROBJ;} - spk=URN_LIT; - game.prop[URN]=2; - RSPEAK(spk); + if (game.prop[URN] == 0) { + RSPEAK(URN_EMPTY); + } else { + game.prop[URN] = 2; + RSPEAK(URN_LIT); + } return GO_CLEAROBJ; } else { if (obj != LAMP) @@ -814,7 +814,7 @@ static int reservoir(void) /* Z'ZZZ (word gets recomputed at startup; different each game). */ { if (!AT(RESER) && game.loc != game.fixed[RESER]-1) { - RSPEAK(RUB_NOGO); + RSPEAK(NOTHING_HAPPENS); return GO_CLEAROBJ; } else { PSPEAK(RESER,game.prop[RESER]+1);