From: Eric S. Raymond Date: Wed, 7 Jun 2017 14:38:18 +0000 (-0400) Subject: Localize TK. X-Git-Tag: 1.1~560 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=2deb1b9f7ff8e8e2a1b96fb28344100860b50897 Localize TK. --- diff --git a/advent.h b/advent.h index 76b6080..33ed6cf 100644 --- a/advent.h +++ b/advent.h @@ -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; diff --git a/init.c b/init.c index ee92539..0e6ae1c 100644 --- a/init.c +++ b/init.c @@ -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) diff --git a/main.c b/main.c index bdbb575..78577af 100644 --- a/main.c +++ b/main.c @@ -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). */