From 8675c4facd154b9eaa370c6d46b99473287552c7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 30 Jun 2017 12:10:26 -0400 Subject: [PATCH] Less magical numbers. --- actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.c b/actions.c index fbd7f55..0f17bea 100644 --- a/actions.c +++ b/actions.c @@ -966,8 +966,8 @@ static int say(struct command_t *command) char word1[6]; packed_to_token(command->wd1, word1); int wd = (int) get_vocab_id(word1); - /* FIXME: issue in lexical analyzer, last two magic numbers can't change */ - if (wd == XYZZY || wd == PLUGH || wd == PLOVER || wd == 2025 || wd == 2034) { + /* FIXME: magic numbers */ + if (wd == XYZZY || wd == PLUGH || wd == PLOVER || wd == 2000 + GIANTWORDS || wd == 2000 + PART) { /* FIXME: scribbles on the interpreter's command block */ wordclear(&command->wd2); return GO_LOOKUP; -- 2.31.1