Magic number replacement.

This commit is contained in:
Jason S. Ninneman 2017-06-30 09:00:24 -07:00
parent a48e0ff30e
commit 7ca390c9cc

View file

@ -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 == 62 || wd == 65 || wd == 71 || wd == 2025 || wd == 2034) {
if (wd == XYZZY || wd == PLUGH || wd == FORWARD1 || wd == GIANTWORDS + 2000 || wd == PART + 2000) {
/* FIXME: scribbles on the interpreter's command block */
wordclear(&command->wd2);
return GO_LOOKUP;