projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Magic-number elimination.
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 2a1f436a19d4142eac816be066f127eb993a859e..8dcaa52eda8e465e4e2a31817acd6ffc8e46b5d4 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-185,7
+185,7
@@
static void checkhints(void)
game.hintlc[hint] = 0;
return;
case 4: /* dark */
game.hintlc[hint] = 0;
return;
case 4: /* dark */
- if (game.prop[EMERALD] !=
NOT_YET_FOUND && game.prop[PYRAMID] == NOT_YET_
FOUND)
+ if (game.prop[EMERALD] !=
STATE_NOTFOUND && game.prop[PYRAMID] == STATE_NOT
FOUND)
break;
game.hintlc[hint] = 0;
return;
break;
game.hintlc[hint] = 0;
return;
@@
-1076,7
+1076,7
@@
L2607:
packed_to_token(command.wd2, word2);
V1 = get_vocab_id(word1);
V2 = get_vocab_id(word2);
packed_to_token(command.wd2, word2);
V1 = get_vocab_id(word1);
V2 = get_vocab_id(word2);
- if (V1 == ENTER && (V2 == STREAM || V2 ==
1000 + WATER
)) {
+ if (V1 == ENTER && (V2 == STREAM || V2 ==
PROMOTE_WORD(WATER)
)) {
if (LIQLOC(game.loc) == WATER) {
rspeak(FEET_WET);
} else {
if (LIQLOC(game.loc) == WATER) {
rspeak(FEET_WET);
} else {