projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c41018
)
Less magical numbers.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 30 Jun 2017 16:10:26 +0000
(12:10 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 30 Jun 2017 16:10:26 +0000
(12:10 -0400)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/actions.c
index fbd7f550237937ca4c0a93115c1d1e5079587c3b..0f17bea4d6a38ae45e30e9e9c3454bda71785433 100644
(file)
--- 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);
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 == 20
25 || wd == 2034
) {
+ /* FIXME:
magic numbers
*/
+ if (wd == XYZZY || wd == PLUGH || wd == PLOVER || wd == 20
00 + GIANTWORDS || wd == 2000 + PART
) {
/* FIXME: scribbles on the interpreter's command block */
wordclear(&command->wd2);
return GO_LOOKUP;
/* FIXME: scribbles on the interpreter's command block */
wordclear(&command->wd2);
return GO_LOOKUP;