X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=32dcd902ab4296389d3382320d6958af9fbaa479;hp=7faf3313e25fb5b5f53ad0efb849e331d12605f9;hb=5f28f9524472ef6784191470747d708262b31386;hpb=80b2b9b356efad12257f26f541693377bf8056fb diff --git a/actions.c b/actions.c index 7faf331..32dcd90 100644 --- a/actions.c +++ b/actions.c @@ -1313,6 +1313,14 @@ int action(struct command_t *command) * unless verb is "say", which snarfs arbitrary second word. */ { + /* Previously, actions that result in a message, but don't do anything + * further were called "specials". Now they're handled here as normal + * actions. If noaction is true, then we spit out the message and return */ + if (actions[command->verb].noaction) { + speak(actions[command->verb].message); + return GO_CLEAROBJ; + } + if (command->part == unknown) { /* Analyse an object word. See if the thing is here, whether * we've got a verb yet, and so on. Object must be here