From: Eric S. Raymond Date: Wed, 7 Jun 2017 14:33:38 +0000 (-0400) Subject: Narrow the scope of IGO. X-Git-Tag: 1.1~561 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=8a256a6e374d5a559ce97bf2f1f42cafc12ffe20 Narrow the scope of IGO. --- diff --git a/advent.h b/advent.h index 61c2dfa..76b6080 100644 --- a/advent.h +++ b/advent.h @@ -135,7 +135,7 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, BOTTLE, CAGE, CAVE, CAVITY, CHAIN, CHASM, CHEST, CLAM, COINS, DALTLC, DOOR, DPRSSN, DRAGON, DWARF, EGGS, EMRALD, ENTER, ENTRNC, FIND, FISSUR, FOOD, GRATE, HINT, I, INVENT, - IGO, J, JADE, K, KEYS, KNIFE, L, LAMP, LOCK, LOOK, + J, JADE, K, KEYS, KNIFE, L, LAMP, LOCK, LOOK, MAGZIN, MAXDIE, MAXTRS, MESSAG, MIRROR, MXSCOR, NUGGET, NUL, OGRE, OIL, OLDOBJ, OYSTER, PANIC, PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, diff --git a/init.c b/init.c index 87e8da2..ee92539 100644 --- a/init.c +++ b/init.c @@ -353,7 +353,7 @@ L1106: /*etc*/ ; * game.dkill # of dwarves killed (unused in scoring, needed for msg) * game.foobar Current progress in saying "FEE FIE FOE FOO". * game.holdng Number of objects being carried - * IGO How many times he's said "go XXX" instead of "XXX" + * igo How many times he's said "go XXX" instead of "XXX" * game.iwest How many times he's said "west" instead of "w" * game.knfloc 0 if no knife here, loc if knife here, -1 after caveat * game.limit Lifetime of lamp (not set here) @@ -371,7 +371,6 @@ L1106: /*etc*/ ; if(TRNVLS > 0)game.thresh=MOD(TRNVAL[1],100000)+1; game.trnluz=0; game.lmwarn=false; - IGO=0; game.iwest=0; game.knfloc=0; game.detail=0; diff --git a/main.c b/main.c index be941d1..bdbb575 100644 --- a/main.c +++ b/main.c @@ -21,7 +21,7 @@ long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, BOTTLE, CAGE, CAVE, CAVITY, CHAIN, CHASM, CHEST, CLAM, COINS, DALTLC, DOOR, DPRSSN, DRAGON, DWARF, EGGS, EMRALD, ENTER, ENTRNC, FIND, FISSUR, FOOD, - GRATE, HINT, I, INVENT, IGO, J, JADE, K, KEYS, + GRATE, HINT, I, INVENT, J, JADE, K, KEYS, KNIFE, L, LAMP, LOCK, LOOK, MAGZIN, MAXDIE, MAXTRS, MESSAG, MIRROR, MXSCOR, NUGGET, NUL, OGRE, OIL, OYSTER, PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2, @@ -155,6 +155,7 @@ static bool fallback_handler(char *buf) static bool do_command(FILE *cmdin) { long LL, KQ, VERB, KK, K2; long obj; + static long IGO = 0; /* Can't leave cave once it's closing (except by main office). */