From 1f7a1bc8fdfb8f8bd7cdd5d4161f9e54220a7ed2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 12 Jun 2017 00:10:07 -0400 Subject: [PATCH] Localization moves for K. --- actions.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/actions.c b/actions.c index de5f830..0c79f3a 100644 --- a/actions.c +++ b/actions.c @@ -339,10 +339,10 @@ static int discard(long obj, bool just_do_it) if (obj == RUBY)SPK=221; RSPEAK(SPK); if (SPK != 220) { - K=2-game.prop[RUG]; - game.prop[RUG]=K; - if (K == 2)K=PLAC[SAPPH]; - MOVE(RUG+NOBJECTS,K); + int k = 2-game.prop[RUG]; + game.prop[RUG] = k; + if (k == 2) k = PLAC[SAPPH]; + MOVE(RUG+NOBJECTS, k); } } } else if (obj == COINS && HERE(VEND)) { @@ -372,9 +372,10 @@ static int discard(long obj, bool just_do_it) if (game.prop[VASE] != 0)game.fixed[VASE]= -1; } } - K=LIQUID(); - if (K == obj)obj=BOTTLE; - if (obj == BOTTLE && K != 0)game.place[K]=0; + int k = LIQUID(); + if (k == obj)obj=BOTTLE; + if (obj == BOTTLE && k != 0) + game.place[k]=0; if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc); DROP(obj,game.loc); if (obj != BIRD) return(2012); -- 2.31.1