From 39a25f8ec79c2a6e0f25fb9060cdb932e3383905 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 30 Jun 2017 13:30:49 -0400 Subject: [PATCH] Magic-number elimination. --- adventure.yaml | 2 +- main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adventure.yaml b/adventure.yaml index e7ff38b..efe2f43 100644 --- a/adventure.yaml +++ b/adventure.yaml @@ -128,7 +128,7 @@ 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 72c40f3..4a92f00 100644 --- 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 */ -- 2.31.1