X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=9b09183bc5e115cdb27e41e6d151c54e9a26c75e;hp=0e56f254beeffa6e227e2ee8a557b8dc69ca9881;hb=851f90cdf7c2ef627a8a14caa4cdaad644c7b60b;hpb=0d373a6b87e921d531851d37b8e29b12e4dd3f10 diff --git a/actions.c b/actions.c index 0e56f25..9b09183 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)