diff options
author | marcel <marcel@FreeBSD.org> | 1999-11-16 10:26:38 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-11-16 10:26:38 +0000 |
commit | 520fff788fc8f2154247a6cff986abf634fdbb51 (patch) | |
tree | 839b85661e38597650d090e9cb482291451611bb /games/hack/hack.eat.c | |
parent | 44fac3a89d25ca434f91c4f961a363ea590faae8 (diff) | |
download | FreeBSD-src-520fff788fc8f2154247a6cff986abf634fdbb51.zip FreeBSD-src-520fff788fc8f2154247a6cff986abf634fdbb51.tar.gz |
Add type int to those variables without a type. This is caused by the
frequent use of ``register var'' instead of ``register int var'' and
the removal of the register hint in the previous commit.
Diffstat (limited to 'games/hack/hack.eat.c')
-rw-r--r-- | games/hack/hack.eat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/hack/hack.eat.c b/games/hack/hack.eat.c index a490be8..8c023a6 100644 --- a/games/hack/hack.eat.c +++ b/games/hack/hack.eat.c @@ -90,7 +90,7 @@ Meatdone(){ doeat(){ struct obj *otmp; struct objclass *ftmp; - tmp; + int tmp; /* Is there some food (probably a heavy corpse) here on the ground? */ if(!Levitation) @@ -277,13 +277,13 @@ gethungry(){ } /* called after vomiting and after performing feats of magic */ -morehungry(num) num; { +morehungry(num) int num; { u.uhunger -= num; newuhs(TRUE); } /* called after eating something (and after drinking fruit juice) */ -lesshungry(num) num; { +lesshungry(num) int num; { u.uhunger += num; newuhs(FALSE); } @@ -362,7 +362,7 @@ struct obj *otmp; /* returns 1 if some text was printed */ eatcorpse(otmp) struct obj *otmp; { char let = CORPSE_I_TO_C(otmp->otyp); -tp = 0; +int tp = 0; if(let != 'a' && moves > otmp->age + 50 + rn2(100)) { tp++; pline("Ulch -- that meat was tainted!"); |