Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-06-30 13:30:49 -04:00
parent d6dab20801
commit 39a25f8ec7
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@
motions: !!omap
- MOT_0:
words: !!null
- MOT_1:
- HERE:
words: !!null
- MOT_2:
words: ['road', 'hill']

2
main.c
View file

@ -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 */