Concentrate all magic-number values for packed-string constants in one place.
[open-adventure.git] / actions.c
index c547b3536c59bccfce75640f8ed71a4329be5b2b..6cdc61dbb9cd857207f4b355ce3bfb693f8669f4 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -82,7 +82,7 @@ static int attack(FILE *input, token_t verb, token_t obj)
          *  too.  Then do a null motion to get new description. */
         RSPEAK(BARE_HANDS_QUERY);
         GETIN(input, &WD1, &WD1X, &WD2, &WD2X);
-        if (WD1 != MAKEWD(25) && WD1 != MAKEWD(250519))
+        if (WD1 != MAKEWD(WORD_YINIT) && WD1 != MAKEWD(WORD_YES))
             return GO_CHECKFOO;
         PSPEAK(DRAGON, 3);
         game.prop[DRAGON] = 1;