projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6dab20
)
Magic-number elimination.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 30 Jun 2017 17:30:49 +0000
(13:30 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 30 Jun 2017 17:30:49 +0000
(13:30 -0400)
adventure.yaml
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/adventure.yaml
b/adventure.yaml
index e7ff38b5c83e6be57cfa1cc97a6d4c1f6481d11d..efe2f43e7ed3362c1296e49d6268c0953a0c9e2b 100644
(file)
--- 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 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 */