Localization moves for K.

This commit is contained in:
Eric S. Raymond 2017-06-12 00:10:07 -04:00
parent 04db837075
commit 1f7a1bc8fd

View file

@ -339,10 +339,10 @@ static int discard(long obj, bool just_do_it)
if (obj == RUBY)SPK=221; if (obj == RUBY)SPK=221;
RSPEAK(SPK); RSPEAK(SPK);
if (SPK != 220) { if (SPK != 220) {
K=2-game.prop[RUG]; int k = 2-game.prop[RUG];
game.prop[RUG]=K; game.prop[RUG] = k;
if (K == 2)K=PLAC[SAPPH]; if (k == 2) k = PLAC[SAPPH];
MOVE(RUG+NOBJECTS,K); MOVE(RUG+NOBJECTS, k);
} }
} }
} else if (obj == COINS && HERE(VEND)) { } 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; if (game.prop[VASE] != 0)game.fixed[VASE]= -1;
} }
} }
K=LIQUID(); int k = LIQUID();
if (K == obj)obj=BOTTLE; if (k == obj)obj=BOTTLE;
if (obj == BOTTLE && K != 0)game.place[K]=0; if (obj == BOTTLE && k != 0)
game.place[k]=0;
if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc); if (obj == CAGE && game.prop[BIRD] == 1)DROP(BIRD,game.loc);
DROP(obj,game.loc); DROP(obj,game.loc);
if (obj != BIRD) return(2012); if (obj != BIRD) return(2012);