Apply DEMOTE_WORD(). 178/head
authorJason S. Ninneman <jsn@mbar.us>
Sat, 1 Jul 2017 13:21:37 +0000 (06:21 -0700)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 1 Jul 2017 13:22:53 +0000 (13:22 +0000)
main.c

diff --git a/main.c b/main.c
index 3c4d448ab56009f5f505b6aeb5510fe211e7ee5e..39a88999da9b81e8fd4c672b65a9dcbb1f98ebcd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1115,7 +1115,7 @@ L2607:
             /* FIXME: Magic numbers related to vocabulary */
            if (!((V1 != PROMOTE_WORD(WATER) && V1 != PROMOTE_WORD(OIL)) ||
                  (V2 != PROMOTE_WORD(PLANT) && V2 != PROMOTE_WORD(DOOR)))) {
-                if (AT(V2 - 1000))
+               if (AT(DEMOTE_WORD(V2)))
                     command.wd2 = token_to_packed("POUR");
             }
            if (V1 == PROMOTE_WORD(CAGE) && V2 == PROMOTE_WORD(BIRD) && HERE(CAGE) && HERE(BIRD))