Magic-number elimination.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 30 Jun 2017 17:30:49 +0000 (13:30 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 30 Jun 2017 17:30:49 +0000 (13:30 -0400)
adventure.yaml
main.c

index e7ff38b5c83e6be57cfa1cc97a6d4c1f6481d11d..efe2f43e7ed3362c1296e49d6268c0953a0c9e2b 100644 (file)
 motions: !!omap
 - MOT_0:
     words: !!null
-- MOT_1:
+- HERE:
     words: !!null
 - MOT_2:
     words: ['road', 'hill']
diff --git a/main.c b/main.c
index 72c40f39f2ce3aeea0679d8d45258c3f8e028bb5..4a92f00835d3f4c616b50fe95ae1b4d7f6c7b670 100644 (file)
--- a/main.c
+++ b/main.c
@@ -995,7 +995,7 @@ static bool do_command()
             rspeak(TAME_BEAR);
         speak(msg);
         if (FORCED(game.loc)) {
-            if (playermove(MOT_1))
+            if (playermove(HERE))
                 return true;
             else
                 continue;      /* back to top of main interpreter loop */