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 motions: !!omap
- MOT_0: - MOT_0:
words: !!null words: !!null
- MOT_1: - HERE:
words: !!null words: !!null
- MOT_2: - MOT_2:
words: ['road', 'hill'] words: ['road', 'hill']

2
main.c
View file

@ -995,7 +995,7 @@ static bool do_command()
rspeak(TAME_BEAR); rspeak(TAME_BEAR);
speak(msg); speak(msg);
if (FORCED(game.loc)) { if (FORCED(game.loc)) {
if (playermove(MOT_1)) if (playermove(HERE))
return true; return true;
else else
continue; /* back to top of main interpreter loop */ continue; /* back to top of main interpreter loop */