Localize TK.

This commit is contained in:
Eric S. Raymond 2017-06-07 10:38:18 -04:00
parent 8a256a6e37
commit 2deb1b9f7f
3 changed files with 5 additions and 4 deletions

View file

@ -140,7 +140,7 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR,
OGRE, OIL, OLDOBJ, OYSTER, PANIC, PEARL, PILLOW, PLANT, PLANT2, PYRAM,
RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY,
SCORE, SECT, SIGN, SNAKE, SPK, STEPS, STICK,
STREAM, THROW, TK[], TRIDNT, TROLL, TROLL2,
STREAM, THROW, TRIDNT, TROLL, TROLL2,
URN, V1, V2, VASE, VEND,
VOLCAN, VRSION, WATER, WD1, WD1X, WD2, WD2X;

4
init.c
View file

@ -353,11 +353,11 @@ 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)
* MAXDIE Number of reincarnation messages available (up to 5)
* MAXDIE Number of reincarnation messages available (up to 5)
* game.numdie Number of times killed so far
* game.thresh Next #turns threshhold (-1 if none)
* game.trndex Index in TRNVAL of next threshhold (section 14 of database)

3
main.c
View file

@ -26,7 +26,7 @@ long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD,
MESSAG, MIRROR, MXSCOR, NUGGET, NUL, OGRE, OIL, OYSTER,
PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2,
RUBY, RUG, SAPPH, SAY, SCORE, SECT, SIGN, SNAKE, SPK,
STEPS, STICK, STREAM, THROW, TK[21], TRIDNT, TROLL, TROLL2,
STEPS, STICK, STREAM, THROW, TRIDNT, TROLL, TROLL2,
URN, V1, V2, VASE, VEND,
VOLCAN, VRSION = 25, WATER, WD1, WD1X, WD2, WD2X;
FILE *logfp;
@ -155,6 +155,7 @@ static bool fallback_handler(char *buf)
static bool do_command(FILE *cmdin) {
long LL, KQ, VERB, KK, K2;
long obj;
long TK[21];
static long IGO = 0;
/* Can't leave cave once it's closing (except by main office). */