From: Eric S. Raymond Date: Fri, 30 Jun 2017 17:30:49 +0000 (-0400) Subject: Magic-number elimination. X-Git-Tag: takebird~178 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=39a25f8ec79c2a6e0f25fb9060cdb932e3383905 Magic-number elimination. --- 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 */