projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminated a label
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index c23b46747c5f99e45029d46de4ca2d7451ef435c..bff59fbb21ba7e03e32ed43672a2987b8c4fb5af 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1138,7
+1138,7
@@
L2607:
if (command.id1 == PROMOTE_WORD(CAGE) && command.id2 == PROMOTE_WORD(BIRD) && HERE(CAGE) && HERE(BIRD))
command.wd1 = token_to_packed("CATCH");
}
if (command.id1 == PROMOTE_WORD(CAGE) && command.id2 == PROMOTE_WORD(BIRD) && HERE(CAGE) && HERE(BIRD))
command.wd1 = token_to_packed("CATCH");
}
-L
movehint
:
+L
ookup
:
if (wordeq(command.wd1, token_to_packed("WEST"))) {
if (++game.iwest == 10)
rspeak(W_IS_WEST);
if (wordeq(command.wd1, token_to_packed("WEST"))) {
if (++game.iwest == 10)
rspeak(W_IS_WEST);
@@
-1147,7
+1147,6
@@
Lmovehint:
if (++game.igo == 10)
rspeak(GO_UNNEEDED);
}
if (++game.igo == 10)
rspeak(GO_UNNEEDED);
}
-Lookup:
packed_to_token(command.wd1, word1);
defn = get_vocab_id(word1);
if (defn == WORD_NOT_FOUND) {
packed_to_token(command.wd1, word1);
defn = get_vocab_id(word1);
if (defn == WORD_NOT_FOUND) {
@@
-1200,7
+1199,7
@@
Lookup:
strncpy(command.raw1, command.raw2, LINESIZE - 1);
wordclear(&command.wd2);
command.raw2[0] = '\0';
strncpy(command.raw1, command.raw2, LINESIZE - 1);
wordclear(&command.wd2);
command.raw2[0] = '\0';
- goto L
movehint
;
+ goto L
ookup
;
case GO_UNKNOWN:
/* Random intransitive verbs come here. Clear obj just in case
* (see attack()). */
case GO_UNKNOWN:
/* Random intransitive verbs come here. Clear obj just in case
* (see attack()). */