Localize K.

This commit is contained in:
Eric S. Raymond 2017-06-12 06:13:00 -04:00
parent 5535c509eb
commit c0a450c4d6
2 changed files with 3 additions and 7 deletions

6
main.c
View file

@ -492,9 +492,9 @@ static void croak(FILE *cmdin)
* him, so we need game.oldlc2, which is the last place he was
* safe.) */
static bool playermove(FILE *cmdin, token_t verb)
static bool playermove(FILE *cmdin, token_t verb, int motion)
{
int LL, K2, KK=KEY[game.loc], motion = K;
int LL, K2, KK=KEY[game.loc];
game.newloc=game.loc;
if (KK == 0)
BUG(26);
@ -1056,7 +1056,7 @@ Laction:
BUG(99);
/* Figure out the new location */
L8: if (playermove(cmdin, VERB))
L8: if (playermove(cmdin, VERB, K))
return true;
else
goto L2000;