Use C idioms for increment/decrement.

This commit is contained in:
Eric S. Raymond 2017-06-10 12:38:40 -04:00
parent d8e30c69c7
commit e6f183ba7f
4 changed files with 51 additions and 48 deletions

View file

@ -752,7 +752,7 @@ static int rub(token_t obj)
DSTROY(URN);
DROP(AMBER,game.loc);
game.prop[AMBER]=1;
game.tally=game.tally-1;
--game.tally;
DROP(CAVITY,game.loc);
SPK=216;
return(2011);
@ -842,7 +842,7 @@ static int throw(FILE *cmdin, long verb, long obj)
game.dseen[i]=false;
game.dloc[i]=0;
SPK=47;
game.dkill=game.dkill+1;
++game.dkill;
if (game.dkill == 1)SPK=149;
return throw_support(SPK);
@ -875,7 +875,7 @@ static int wave(token_t obj)
if (SPK == 206 && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
DROP(JADE,game.loc);
game.prop[JADE]=0;
game.tally=game.tally-1;
--game.tally;
SPK=208;
return(2011);
} else {