Improve TAP messages slightly.
[open-adventure.git] / actions.c
index 05c59d5def25b248365282abbf6dfcf184c02489..05377ffed9bd8ccfe018adfe735e13b66cdb17be 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -1,9 +1,9 @@
 /*
  * Actions for the dungeon-running code.
  *
- * Copyright (c) 1977, 2005 by Will Crowther and Don Woods
- * Copyright (c) 2017 by Eric S. Raymond
- * SPDX-License-Identifier: BSD-2-clause
+ * SPDX-FileCopyrightText: 1977, 2005 by Will Crowther and Don Woods
+ * SPDX-FileCopyrightText 2017 by Eric S. Raymond
+ * SPDX-License-Identifier: BSD-2-Clause
  */
 
 #include <stdlib.h>
@@ -194,6 +194,7 @@ static phase_codes_t bigwords(vocab_t id)
 {
     int foobar = abs(game.foobar);
 
+    /* Only FEE can start a magic-word sequence. */
     if ((foobar == WORD_EMPTY) && (id == FIE || id == FOE || id == FOO || id == FUM)) {
        rspeak(NOTHING_HAPPENS);
        return GO_CLEAROBJ;
@@ -229,6 +230,7 @@ static phase_codes_t bigwords(vocab_t id)
             return GO_CLEAROBJ;
         }
     } else {
+       /* Magic-word sequebce was started but is incorrect */
        rspeak(START_OVER);
         game.foobar = WORD_EMPTY;
         return GO_CLEAROBJ;