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.mon.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.mon.c')
-rw-r--r-- | games/hack/hack.mon.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/games/hack/hack.mon.c b/games/hack/hack.mon.c index 90511b1..218761f 100644 --- a/games/hack/hack.mon.c +++ b/games/hack/hack.mon.c @@ -122,7 +122,7 @@ char *name; youswld(mtmp,dam,die,name) struct monst *mtmp; -dam,die; +int dam,die; char *name; { if(mtmp != u.ustuck) return; @@ -137,10 +137,10 @@ char *name; } dochugw(mtmp) struct monst *mtmp; { -x = mtmp->mx; -y = mtmp->my; -d = dochug(mtmp); -dd; +int x = mtmp->mx; +int y = mtmp->my; +int d = dochug(mtmp); +int dd; if(!d) /* monster still alive */ if(Warning) if(!mtmp->mpeaceful) @@ -157,7 +157,7 @@ dochug(mtmp) struct monst *mtmp; { struct permonst *mdat; - tmp, nearby, scared; + int tmp, nearby, scared; if(mtmp->cham && !rn2(6)) (void) newcham(mtmp, &mons[dlevel+14+rn2(CMNUM-14-dlevel)]); @@ -239,7 +239,7 @@ m_move(mtmp,after) struct monst *mtmp; { struct monst *mtmp2; - nx,ny,omx,omy,appr,nearer,cnt,i,j; + int nx,ny,omx,omy,appr,nearer,cnt,i,j; xchar gx,gy,nix,niy,chcnt; schar chi; boolean likegold, likegems, likeobjs; @@ -786,7 +786,7 @@ newcham(mtmp,mdat) /* make a chameleon look like a new monster */ struct monst *mtmp; struct permonst *mdat; { - mhp, hpn, hpd; + int mhp, hpn, hpd; if(mdat == mtmp->data) return(0); /* still the same monster */ #ifndef NOWORM |