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:
c0a450c
)
Allow direct object to persist across turns.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 12 Jun 2017 10:26:58 +0000
(06:26 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 12 Jun 2017 10:26:58 +0000
(06:26 -0400)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 8e78500a698731e812db9f3971838dd10bf1118b..7c3d78ecf8ae96dd072d7914afe461da7005b9c7 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-676,8
+676,9
@@
static bool playermove(FILE *cmdin, token_t verb, int motion)
static bool do_command(FILE *cmdin)
{
long KQ, VERB, KK, V1, V2;
- long obj, i;
- static long IGO = 0;
+ long i;
+ static long igo = 0;
+ static long obj = 0;
enum speechpart part;
/* Can't leave cave once it's closing (except by main office). */
@@
-996,7
+997,7
@@
L2620: if (WD1 == MAKEWD(23051920)) {
RSPEAK(17);
}
if (WD1 == MAKEWD( 715) && WD2 != 0) {
- if (++
IGO
== 10)
+ if (++
igo
== 10)
RSPEAK(276);
}
L2630: