Interim magic number replacement.
[open-adventure.git] / actions.c
index 0f17bea4d6a38ae45e30e9e9c3454bda71785433..a30d7c0fc8f551af25cfcd0366ff1f2f2d6e4a96 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -967,7 +967,7 @@ static int say(struct command_t *command)
     packed_to_token(command->wd1, word1);
     int wd = (int) get_vocab_id(word1);
     /* FIXME: magic numbers */
-    if (wd == XYZZY || wd == PLUGH || wd == PLOVER || wd == 2000 + GIANTWORDS || wd == 2000 + PART) {
+    if (wd == XYZZY || wd == PLUGH || wd == PLOVER || wd == ACTION_WORD(GIANTWORDS) || wd == ACTION_WORD(PART)) {
         /* FIXME: scribbles on the interpreter's command block */
         wordclear(&command->wd2);
         return GO_LOOKUP;